From 6bf24f4dd01331122a0f10db392c08605f159826 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Fri, 4 Jul 2014 18:03:45 +0400 Subject: Removed EG(active_symbol_table) and use corresponding value from EG(current_execute_data) --- main/php_variables.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'main/php_variables.c') diff --git a/main/php_variables.c b/main/php_variables.c index 30a84822af..8fa48b2889 100644 --- a/main/php_variables.c +++ b/main/php_variables.c @@ -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); -- cgit v1.2.1