Bug #66535 [NEW]: X-PHP-Originating-Script adds newline if no custom headers are given

From: Date: Tue, 21 Jan 2014 17:16:21 +0000
Subject: Bug #66535 [NEW]: X-PHP-Originating-Script adds newline if no custom headers are given
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183939@lists.php.net to get a copy of this message
From: datibbaw Operating system: N/A PHP version: 5.5.8 Package: *Mail Related Bug Type: Bug Bug description:X-PHP-Originating-Script adds newline if no custom headers are given Description: ------------ A newline is added to the mail headers when mail.add_x_header is used and no other headers are passed to mail(). The scenario in which custom headers are used was already fixed in #48620, back in 2009; this is different. Test script: --------------- assert(ini_get('mail.add_x_header') == 1); mail("me@example.com", "Test", "A line of text."); Expected result: ---------------- From: me@mymachine.local (Me) X-PHP-Originating-Script: 501:- A line of text. Actual result: -------------- From: me@mymachine.local (Me) X-PHP-Originating-Script: 501:- A line of text. -- Edit bug report at https://bugs.php.net/bug.php?id=66535&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66535&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66535&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66535&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=66535&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=66535&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=66535&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=66535&r=needscript Try newer version: https://bugs.php.net/fix.php?id=66535&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=66535&r=support Expected behavior: https://bugs.php.net/fix.php?id=66535&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=66535&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=66535&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=66535&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66535&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=66535&r=dst IIS Stability: https://bugs.php.net/fix.php?id=66535&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=66535&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=66535&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=66535&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=66535&r=mysqlcfg

« previous php.bugs (#183939) next »