From f4fa220b7bcfc7623af7fcdc2e6183eac1fb1aee Mon Sep 17 00:00:00 2001 From: lacatoire Date: Thu, 24 Sep 2026 17:16:06 +0200 Subject: [PATCH 1/2] mail: document PHP 8.5 sendmail error reporting --- reference/mail/functions/mail.xml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/reference/mail/functions/mail.xml b/reference/mail/functions/mail.xml index 9eb82f7eea30..f7135ef6db4f 100644 --- a/reference/mail/functions/mail.xml +++ b/reference/mail/functions/mail.xml @@ -185,6 +185,15 @@ $text = str_replace("\n.", "\n..", $text); + + 8.5.0 + + When using the sendmail transport, the actual sendmail error is now + reported, and unexpected termination of the sendmail process is + detected. In such cases, a warning is emitted and &false; is returned. + Previously, these errors were silently ignored. + + 7.2.0 From f0479c4068e8b3fa5615acd10a0ed3b24711b532 Mon Sep 17 00:00:00 2001 From: lacatoire Date: Sat, 26 Sep 2026 14:50:37 +0200 Subject: [PATCH 2/2] Name the E_WARNING constant in the mail() changelog entry --- reference/mail/functions/mail.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reference/mail/functions/mail.xml b/reference/mail/functions/mail.xml index f7135ef6db4f..b5bde1f0da0c 100644 --- a/reference/mail/functions/mail.xml +++ b/reference/mail/functions/mail.xml @@ -190,7 +190,8 @@ $text = str_replace("\n.", "\n..", $text); When using the sendmail transport, the actual sendmail error is now reported, and unexpected termination of the sendmail process is - detected. In such cases, a warning is emitted and &false; is returned. + detected. In such cases, an E_WARNING is emitted + and &false; is returned. Previously, these errors were silently ignored.