We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents aff26e4 + 05fce50 commit d7030c2Copy full SHA for d7030c2
main/php_variables.c
@@ -893,6 +893,7 @@ static bool php_auto_globals_create_server(zend_string *name)
893
} else {
894
zval_ptr_dtor_nogc(&PG(http_globals)[TRACK_VARS_SERVER]);
895
array_init(&PG(http_globals)[TRACK_VARS_SERVER]);
896
+ zend_hash_real_init_mixed(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]));
897
}
898
899
check_http_proxy(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]));
tests/basic/gh15905.phpt
@@ -0,0 +1,12 @@
1
+--TEST--
2
+GH-15905 (Assertion failure for TRACK_VARS_SERVER)
3
+--INI--
4
+variables_order=E
5
+auto_globals_jit=0
6
+register_argc_argv=1
7
+--FILE--
8
+<?php
9
+echo "okay\n";
10
+?>
11
+--EXPECT--
12
+okay
0 commit comments