mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Removed EG(active_symbol_table) and use corresponding value from EG(current_execute_data)
This commit is contained in:
parent
d2890963e4
commit
6bf24f4dd0
21 changed files with 251 additions and 199 deletions
|
@ -110,8 +110,7 @@ PHPAPI void php_register_variable_ex(char *var_name, zval *val, zval *track_vars
|
|||
}
|
||||
|
||||
/* GLOBALS hijack attempt, reject parameter */
|
||||
if (symtable1 && EG(active_symbol_table) &&
|
||||
symtable1 == &EG(active_symbol_table)->ht &&
|
||||
if (symtable1 == &EG(symbol_table).ht &&
|
||||
var_len == sizeof("GLOBALS")-1 &&
|
||||
!memcmp(var, "GLOBALS", sizeof("GLOBALS")-1)) {
|
||||
zval_dtor(val);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue