#50907 [NEW]: X-PHP-Originating-Script adding two new lines in *NIX
From: adeel dot e at gmail dot com
Operating system: CentOS 5.4
PHP version: 5.3.1
PHP Bug Type: *Mail Related
Bug description: X-PHP-Originating-Script adding two new lines in *NIX
Description:
------------
This change (http://cvs.php.net/viewvc.cgi/php-src/ext/standard/mail.c?
r1=1.106&r2=1.107) adds "\r\n" after the X-PHP-Originating-Script
header, on *NIX machines using "\n" as new line separators, this results
in *two* line breaks which breaks the email.
This worked fine in PHP 5.2.x but since upgrading to PHP 5.3 it has
stopped working.
Expected result:
----------------
;-----------------
Date: 2 Feb 2010 01:41:56 +0000
To: e@example.com
Subject: My Subject
X-PHP-Originating-Script: 10002:mail.php
From: F <f@example.com>
Reply-To: F <f@example.com>
;-----------------
Actual result:
--------------
;-----------------
Date: 2 Feb 2010 01:41:56 +0000
To: e@example.com
Subject: My Subject
X-PHP-Originating-Script: 10002:mail.php
From: F <f@example.com>
Reply-To: F <f@example.com>
;-----------------
--
Edit bug report at http://bugs.php.net/?id=50907&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50907&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50907&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50907&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=50907&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50907&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=50907&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=50907&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=50907&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=50907&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=50907&r=support
Expected behavior: http://bugs.php.net/fix.php?id=50907&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=50907&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=50907&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=50907&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50907&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50907&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=50907&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=50907&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=50907&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=50907&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=50907&r=mysqlcfg
Thread (2 messages)
- adeel dot e at gmail dot com