cvs: php-src(PHP_4_3) /main main.c

From: Date: Wed, 01 Oct 2003 23:13:05 +0000
Subject: cvs: php-src(PHP_4_3) /main main.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-23974@lists.php.net to get a copy of this message
andrei Wed Oct 1 19:13:05 2003 EDT Modified files: (Branch: PHP_4_3) /php-src/main main.c Log: Make sure to clear out the refcount. Index: php-src/main/main.c diff -u php-src/main/main.c:1.512.2.48 php-src/main/main.c:1.512.2.49 --- php-src/main/main.c:1.512.2.48 Wed Oct 1 17:24:19 2003 +++ php-src/main/main.c Wed Oct 1 19:13:04 2003 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: main.c,v 1.512.2.48 2003/10/01 21:24:19 andrei Exp $ */ +/* $Id: main.c,v 1.512.2.49 2003/10/01 23:13:04 andrei Exp $ */ /* {{{ includes */ @@ -1558,6 +1558,7 @@ ALLOC_ZVAL(arr); array_init(arr); arr->is_ref = 0; + arr->refcount = 0; /* Prepare argv */ if (SG(request_info).argc) { /* are we in cli sapi? */ @@ -1611,6 +1612,7 @@ } Z_TYPE_P(argc) = IS_LONG; argc->is_ref = 0; + argc->refcount = 0; if (PG(register_globals) || SG(request_info).argc) { arr->refcount++;

« previous php.cvs (#23974) next »