summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAndrei Zmievski <andrei@php.net>1999-12-04 18:56:17 +0000
committerAndrei Zmievski <andrei@php.net>1999-12-04 18:56:17 +0000
commit43047fdca67de3d980619a0b8c56126c321c7737 (patch)
treebab1ae42b7391505fd700b5c7ef3900571c27766 /ext
parent7532393c1ab21d9ba33bb171955498bd078df66d (diff)
downloadphp-git-43047fdca67de3d980619a0b8c56126c321c7737.tar.gz
(php_set_session_var) Initialize the refcount here.
Diffstat (limited to 'ext')
-rw-r--r--ext/session/session.c1
1 files changed, 1 insertions, 0 deletions
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));