summaryrefslogtreecommitdiff
path: root/main/php_variables.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/php_variables.c')
-rw-r--r--main/php_variables.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/php_variables.c b/main/php_variables.c
index 05516747d4..2877d4dc4d 100644
--- a/main/php_variables.c
+++ b/main/php_variables.c
@@ -75,6 +75,8 @@ PHPAPI void php_register_variable_ex(char *var, zval *val, pval *track_vars_arra
if (track_vars_array) {
symtable1 = Z_ARRVAL_P(track_vars_array);
+ } else if (PG(register_globals)) {
+ symtable1 = EG(active_symbol_table);
}
if (!symtable1) {
/* Nothing to do */