[doc-en] master: Documented the change to mail() in 8.0.0 (#5926)
| From: | Damien McKenna via GitHub | Date: | Sat, 10 Oct 2026 16:45:04 +0000 |
| Subject: | [doc-en] master: Documented the change to mail() in 8.0.0 (#5926) | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-23826@lists.php.net to get a copy of this message | ||
Author: Damien McKenna (damienmckenna)
Committer: GitHub (web-flow)
Pusher: jordikroon
Date: 2026-10-10T18:44:59+02:00
Commit: https://github.com/php/doc-en/commit/4ea3d0ff937656875119dda356a319017def13ce
Raw diff: https://github.com/php/doc-en/commit/4ea3d0ff937656875119dda356a319017def13ce.diff
Documented the change to mail() in 8.0.0 (#5926)
* Documented the change to mail() in 8.0.0
The page did not document the important change in mail() in the 8.0.0 release.
* By jordikroon: Clarification that the line ending is per RFC 5322.
Co-authored-by: Jordi Kroon <jordikroon@php.net>
Changed paths:
M reference/mail/functions/mail.xml
Diff:
diff --git a/reference/mail/functions/mail.xml b/reference/mail/functions/mail.xml
index b5bde1f0da0c..bc66306f6c9b 100644
--- a/reference/mail/functions/mail.xml
+++ b/reference/mail/functions/mail.xml
@@ -195,6 +195,15 @@ $text = str_replace("\n.", "\n..", $text);
Previously, these errors were silently ignored.
</entry>
</row>
+ <row>
+ <entry>8.0.0</entry>
+ <entry>
+ All headers, including those in the <parameter>additional_headers</parameter>
+ parameter, are now separated by CRLF (<literal>\r\n</literal>), as required by
+ <link xlink:href="&url.rfc;5322">RFC 5322</link>, rather than a
possible mixture
+ of CRLF and bare LF (<literal>\n</literal>).
+ </entry>
+ </row>
<row>
<entry>7.2.0</entry>
<entry>