cvs: php4 /ext/mailparse/tests 003.phpt

From: Date: Wed, 27 Mar 2002 14:07:47 +0000
Subject: cvs: php4 /ext/mailparse/tests 003.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-10717@lists.php.net to get a copy of this message
wez Wed Mar 27 09:07:47 2002 EDT Added files: /php4/ext/mailparse/tests 003.phpt Log: add test case for multiple To: lines Index: php4/ext/mailparse/tests/003.phpt +++ php4/ext/mailparse/tests/003.phpt --TEST-- Check handling of multiple To headers --SKIPIF-- <?php if (!extension_loaded("mailparse")) print "skip"; ?> --POST-- --GET-- --FILE-- <?php $text = <<<EOD To: fred@bloggs.com To: wez@thebrainroom.com hello, this is some text=hello. EOD; $mime = mailparse_msg_create(); mailparse_msg_parse($mime, $text); $data = mailparse_msg_get_part_data($mime); echo $data["headers"]["to"]; ?> --EXPECT-- fred@bloggs.com, wez@thebrainroom.com

« previous php.cvs (#10717) next »