]> granicus.if.org Git - php/commitdiff
(php_set_session_var)
authorAndrei Zmievski <andrei@php.net>
Mon, 28 Feb 2000 16:00:46 +0000 (16:00 +0000)
committerAndrei Zmievski <andrei@php.net>
Mon, 28 Feb 2000 16:00:46 +0000 (16:00 +0000)
$foo and $HTTP_SESSION_VARS["foo"] are no longer references to the same
value.

ext/session/session.c

index 12fd84b75634419c4fe7f4634cf5e6e83daeceae..0fe81c7e6901dabfd4bb75c2bcf25bf1e71b73e3 100644 (file)
@@ -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));