From: Andrei Zmievski Date: Sat, 4 Dec 1999 18:56:17 +0000 (+0000) Subject: (php_set_session_var) Initialize the refcount here. X-Git-Tag: PRE_RETURN_REF_PATCH~71 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43047fdca67de3d980619a0b8c56126c321c7737;p=php (php_set_session_var) Initialize the refcount here. --- diff --git a/ext/session/session.c b/ext/session/session.c index d924881bc0..0b9491506e 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -165,6 +165,7 @@ static void php_set_session_var(char *name, size_t namelen, state_val_copy = (zval *)emalloc(sizeof(zval)); *state_val_copy = *state_val; zval_copy_ctor(state_val_copy); + state_val_copy->refcount = 0; if (PG(gpc_globals) && PG(track_vars)) { zend_set_hash_symbol(state_val_copy, name, namelen, 1, 2, PS(http_state_vars)->value.ht, &EG(symbol_table));