]> granicus.if.org Git - php/commitdiff
MFH
authorSascha Schumann <sas@php.net>
Thu, 15 May 2003 13:33:52 +0000 (13:33 +0000)
committerSascha Schumann <sas@php.net>
Thu, 15 May 2003 13:33:52 +0000 (13:33 +0000)
ext/session/session.c

index 2366f61a0a872b9af3acedec05ba174ed110fc81..a8658af0b17e63db1d751b38286f9b653446aa5a 100644 (file)
@@ -278,8 +278,10 @@ void php_add_session_var(char *name, size_t namelen TSRMLS_DC)
                        /* The next call will increase refcount by NR_OF_SYM_TABLES==2 */
                        zend_set_hash_symbol(empty_var, name, namelen, 1, 2, Z_ARRVAL_P(PS(http_session_vars)), &EG(symbol_table));
                } else if (sym_global == NULL) {
+                       SEPARATE_ZVAL_IF_NOT_REF(sym_track);
                        zend_set_hash_symbol(*sym_track, name, namelen, 1, 1, &EG(symbol_table));
                } else if (sym_track == NULL) {
+                       SEPARATE_ZVAL_IF_NOT_REF(sym_global);
                        zend_set_hash_symbol(*sym_global, name, namelen, 1, 1, Z_ARRVAL_P(PS(http_session_vars)));
                }
        } else {