mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.4'
* PHP-8.4: Fix GH-15905: Assertion failure for TRACK_VARS_SERVER
This commit is contained in:
@@ -893,6 +893,7 @@ static bool php_auto_globals_create_server(zend_string *name)
|
||||
} else {
|
||||
zval_ptr_dtor_nogc(&PG(http_globals)[TRACK_VARS_SERVER]);
|
||||
array_init(&PG(http_globals)[TRACK_VARS_SERVER]);
|
||||
zend_hash_real_init_mixed(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]));
|
||||
}
|
||||
|
||||
check_http_proxy(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]));
|
||||
|
||||
12
tests/basic/gh15905.phpt
Normal file
12
tests/basic/gh15905.phpt
Normal file
@@ -0,0 +1,12 @@
|
||||
--TEST--
|
||||
GH-15905 (Assertion failure for TRACK_VARS_SERVER)
|
||||
--INI--
|
||||
variables_order=E
|
||||
auto_globals_jit=0
|
||||
register_argc_argv=1
|
||||
--FILE--
|
||||
<?php
|
||||
echo "okay\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
okay
|
||||
Reference in New Issue
Block a user