[php-src] master: Merge branch 'PHP-8.4' into PHP-8.5

From: Date: Fri, 16 Oct 2026 15:24:59 +0000
Subject: [php-src] master: Merge branch 'PHP-8.4' into PHP-8.5
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-142350@lists.php.net to get a copy of this message
Author: Weilin Du (LamentXU123) Date: 2026-10-16T23:17:31+08:00 Commit: https://github.com/php/php-src/commit/1ef29ab4be23d18fc9ad60c188504aad027c72f3 Raw diff: https://github.com/php/php-src/commit/1ef29ab4be23d18fc9ad60c188504aad027c72f3.diff Merge branch 'PHP-8.4' into PHP-8.5 * PHP-8.4: Fix GH-24350: Stale external tz database read after module restart (#24354) Changed paths: M NEWS M ext/date/php_date.c Diff: diff --git a/NEWS b/NEWS index 71c1239257cf..3b782b201dd9 100644 --- a/NEWS +++ b/NEWS @@ -27,6 +27,8 @@ PHP NEWS - Date: . Fixed bug GH-20503 (Assertion failure with ext/date DateInterval property hash construction). (heathdutton) + . Fixed bug GH-24350 (MINIT reads a stale external tz database after an + in-process module restart). (Lazizbek Ergashev) - Fileinfo: . Fixed bug GH-24289 (finfo::file() reports the wrong argument number for diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 48d9915eaa64..33a6c5b3ccfc 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -448,12 +448,13 @@ ZEND_MODULE_POST_ZEND_DEACTIVATE_D(date) /* {{{ PHP_MINIT_FUNCTION */ PHP_MINIT_FUNCTION(date) { + php_date_global_timezone_db = NULL; + php_date_global_timezone_db_enabled = 0; + REGISTER_INI_ENTRIES(); date_register_classes(); register_php_date_symbols(module_number); - php_date_global_timezone_db = NULL; - php_date_global_timezone_db_enabled = 0; DATEG(last_errors) = NULL; return SUCCESS; }

« previous php.cvs (#142350) next »