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

From: Date: Fri, 16 Oct 2026 15:25:04 +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-142351@lists.php.net to get a copy of this message
Author: Weilin Du (LamentXU123) Date: 2026-10-16T23:18:53+08:00 Commit: https://github.com/php/php-src/commit/6cbd3dcff7b6ae658c514d9fc47984f357c52b5c Raw diff: https://github.com/php/php-src/commit/6cbd3dcff7b6ae658c514d9fc47984f357c52b5c.diff Merge branch 'PHP-8.5' into PHP-8.6 * PHP-8.5: 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 03857a4bd1b7..af3c2b955209 100644 --- a/NEWS +++ b/NEWS @@ -23,6 +23,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 2118aea16389..f8c8bf93124c 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -449,13 +449,14 @@ 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_MINIT(date_time)(INIT_FUNC_ARGS_PASSTHRU); - php_date_global_timezone_db = NULL; - php_date_global_timezone_db_enabled = 0; DATEG(last_errors) = NULL; return SUCCESS; }

« previous php.cvs (#142351) next »