From: Andrei Zmievski Date: Mon, 28 Feb 2000 16:00:46 +0000 (+0000) Subject: (php_set_session_var) X-Git-Tag: PHP-4.0-RC1~359 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd629e6ee02b0b471f62918092e4dd94ae82b2f9;p=php (php_set_session_var) $foo and $HTTP_SESSION_VARS["foo"] are no longer references to the same value. --- diff --git a/ext/session/session.c b/ext/session/session.c index 12fd84b756..0fe81c7e69 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -183,7 +183,7 @@ static void php_set_session_var(char *name, size_t namelen, state_val_copy->refcount = 0; if (PG(register_globals) && PG(track_vars)) { - zend_set_hash_symbol(state_val_copy, name, namelen, 1, 2, PS(http_state_vars)->value.ht, &EG(symbol_table)); + zend_set_hash_symbol(state_val_copy, name, namelen, 0, 2, PS(http_state_vars)->value.ht, &EG(symbol_table)); } else { if (PG(register_globals)) { zend_set_hash_symbol(state_val_copy, name, namelen, 0, 1, &EG(symbol_table));