mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Fix GH-15905: Assertion failure for TRACK_VARS_SERVER
This commit is contained in:
1
NEWS
1
NEWS
@@ -5,6 +5,7 @@ PHP NEWS
|
|||||||
- Core:
|
- Core:
|
||||||
. Fixed bug GH-16054 (Segmentation fault when resizing hash table iterator
|
. Fixed bug GH-16054 (Segmentation fault when resizing hash table iterator
|
||||||
list while adding). (nielsdos)
|
list while adding). (nielsdos)
|
||||||
|
. Fixed bug GH-15905 (Assertion failure for TRACK_VARS_SERVER). (cmb)
|
||||||
|
|
||||||
- DOM:
|
- DOM:
|
||||||
. Fixed bug GH-16039 (Segmentation fault (access null pointer) in
|
. Fixed bug GH-16039 (Segmentation fault (access null pointer) in
|
||||||
|
|||||||
@@ -897,6 +897,7 @@ static bool php_auto_globals_create_server(zend_string *name)
|
|||||||
} else {
|
} else {
|
||||||
zval_ptr_dtor_nogc(&PG(http_globals)[TRACK_VARS_SERVER]);
|
zval_ptr_dtor_nogc(&PG(http_globals)[TRACK_VARS_SERVER]);
|
||||||
array_init(&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]));
|
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