[php-src] PHP-8.6: Merge branch 'PHP-8.5' into PHP-8.6
| From: | Weilin Du | Date: | Fri, 13 Nov 2026 04:16:34 +0000 |
| Subject: | [php-src] PHP-8.6: Merge branch 'PHP-8.5' into PHP-8.6 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-143668@lists.php.net to get a copy of this message | ||
Author: Weilin Du (LamentXU123)
Date: 2026-11-13T12:13:19+08:00
Commit: https://github.com/php/php-src/commit/2cc6fda4e9a7e2f44bc82d7ed6fb63b294a2a314
Raw diff: https://github.com/php/php-src/commit/2cc6fda4e9a7e2f44bc82d7ed6fb63b294a2a314.diff
Merge branch 'PHP-8.5' into PHP-8.6
* PHP-8.5:
Make timezone and mail tests independent of php.ini (#20031)
Changed paths:
M Zend/tests/inheritance/deprecation_to_exception_during_inheritance_can_be_caught.phpt
M ext/date/tests/multiple_calls_date_period_iterator_current.phpt
M ext/standard/tests/mail/gh19188_cr_lf_mode.phpt
M ext/standard/tests/mail/gh19188_lf_mode.phpt
M ext/standard/tests/mail/gh19188_mixed_mode.phpt
M ext/standard/tests/mail/gh19188_os_mode_unix.phpt
Diff:
diff --git a/Zend/tests/inheritance/deprecation_to_exception_during_inheritance_can_be_caught.phpt
b/Zend/tests/inheritance/deprecation_to_exception_during_inheritance_can_be_caught.phpt
index 7a59cca70bd6..3492888be890 100644
--- a/Zend/tests/inheritance/deprecation_to_exception_during_inheritance_can_be_caught.phpt
+++ b/Zend/tests/inheritance/deprecation_to_exception_during_inheritance_can_be_caught.phpt
@@ -4,6 +4,8 @@ Deprecation promoted to exception during inheritance
<?php
if (getenv('SKIP_PRELOAD')) die('skip Error handler not active during
preloading');
?>
+--INI--
+date.timezone=UTC
--FILE--
<?php
diff --git a/ext/date/tests/multiple_calls_date_period_iterator_current.phpt
b/ext/date/tests/multiple_calls_date_period_iterator_current.phpt
index 273f85678798..69f774656a2f 100644
--- a/ext/date/tests/multiple_calls_date_period_iterator_current.phpt
+++ b/ext/date/tests/multiple_calls_date_period_iterator_current.phpt
@@ -2,8 +2,8 @@
Multiple calls to DatePeriod iterator current() leak objects
--FILE--
<?php
-$start = new DateTime('2018-12-31 00:00:00');
-$end = new DateTime('2019-12-31 00:00:00');
+$start = new DateTime('2018-12-31 00:00:00 UTC');
+$end = new DateTime('2019-12-31 00:00:00 UTC');
$interval = new DateInterval('P1M');
$period = new DatePeriod($start, $interval, 1);
diff --git a/ext/standard/tests/mail/gh19188_cr_lf_mode.phpt
b/ext/standard/tests/mail/gh19188_cr_lf_mode.phpt
index 15c9aa2aa28f..911c2f2e4de6 100644
--- a/ext/standard/tests/mail/gh19188_cr_lf_mode.phpt
+++ b/ext/standard/tests/mail/gh19188_cr_lf_mode.phpt
@@ -3,6 +3,7 @@ GH-19188: new INI mail.cr_lf_mode
--INI--
sendmail_path={MAIL:gh19188_cr_lf_mode.out}
mail.cr_lf_mode=crlf
+mail.add_x_header=off
--FILE--
<?php
diff --git a/ext/standard/tests/mail/gh19188_lf_mode.phpt
b/ext/standard/tests/mail/gh19188_lf_mode.phpt
index bd69cc42b62d..4388b91694c6 100644
--- a/ext/standard/tests/mail/gh19188_lf_mode.phpt
+++ b/ext/standard/tests/mail/gh19188_lf_mode.phpt
@@ -3,6 +3,7 @@ GH-19188: mail.cr_lf_mode=lf
--INI--
sendmail_path={MAIL:gh19188_lf_mode.out}
mail.cr_lf_mode=lf
+mail.add_x_header=off
--FILE--
<?php
diff --git a/ext/standard/tests/mail/gh19188_mixed_mode.phpt
b/ext/standard/tests/mail/gh19188_mixed_mode.phpt
index fa5eb63bd4fe..508c421520ab 100644
--- a/ext/standard/tests/mail/gh19188_mixed_mode.phpt
+++ b/ext/standard/tests/mail/gh19188_mixed_mode.phpt
@@ -3,6 +3,7 @@ GH-19188: mail.cr_lf_mode=mixed
--INI--
sendmail_path={MAIL:gh19188_mixed_mode.out}
mail.cr_lf_mode=mixed
+mail.add_x_header=off
--FILE--
<?php
var_dump(mail('user@example.com', 'Test Subject', 'A Message',
'X-Test: mixed'));
diff --git a/ext/standard/tests/mail/gh19188_os_mode_unix.phpt
b/ext/standard/tests/mail/gh19188_os_mode_unix.phpt
index b365e3a671b0..a403457b966c 100644
--- a/ext/standard/tests/mail/gh19188_os_mode_unix.phpt
+++ b/ext/standard/tests/mail/gh19188_os_mode_unix.phpt
@@ -7,6 +7,7 @@ if (PHP_OS_FAMILY === 'Windows') die("skip Non-Windows only");
--INI--
sendmail_path={MAIL:gh19188_os_mode.out}
mail.cr_lf_mode=os
+mail.add_x_header=off
--FILE--
<?php
var_dump(mail('user@example.com', 'Test Subject', 'A Message',
'X-Test: os'));