summaryrefslogtreecommitdiff
path: root/main/php_variables.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-06-16 19:24:56 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-06-16 19:24:56 +0000
commite40142047b7b0f4622c417132f37544fd893905e (patch)
treeef7162bbdab9b1ce9b2174fdc35bef904831064b /main/php_variables.c
parent730ce7b06f2fca9cda374556a9aa43568f4653cb (diff)
downloadphp-git-e40142047b7b0f4622c417132f37544fd893905e.tar.gz
Fixed bug #24208
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 */