|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2014-02-28 14:46 UTC] datibbaw@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: datibbaw
[2014-02-28 14:46 UTC] datibbaw@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 20:00:01 2025 UTC |
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.