cvs: php-src(PHP_5_0) /main php_variables.c

From: Date: Tue, 31 May 2005 17:40:49 +0000
Subject: cvs: php-src(PHP_5_0) /main php_variables.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-32053@lists.php.net to get a copy of this message
dmitry Tue May 31 13:40:49 2005 EDT Modified files: (Branch: PHP_5_0) /php-src/main php_variables.c Log: Fixed possible memory corruption on request shutdown valgrind -q --tool=memcheck sapi/cli/php tests/reflection/001.phpt http://cvs.php.net/diff.php/php-src/main/php_variables.c?r1=1.81.2.9&r2=1.81.2.10&ty=u Index: php-src/main/php_variables.c diff -u php-src/main/php_variables.c:1.81.2.9 php-src/main/php_variables.c:1.81.2.10 --- php-src/main/php_variables.c:1.81.2.9 Wed May 25 13:41:18 2005 +++ php-src/main/php_variables.c Tue May 31 13:40:48 2005 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_variables.c,v 1.81.2.9 2005/05/25 17:41:18 dmitry Exp $ */ +/* $Id: php_variables.c,v 1.81.2.10 2005/05/31 17:40:48 dmitry Exp $ */ #include <stdio.h> #include "php.h" @@ -685,6 +685,8 @@ dummy_track_vars_array->refcount++; } PG(http_globals)[i] = dummy_track_vars_array; + } else { + PG(http_globals)[i]->refcount++; } zend_hash_update(&EG(symbol_table), auto_global_records[i].name, auto_global_records[i].name_len, &PG(http_globals)[i], sizeof(zval *), NULL);

« previous php.cvs (#32053) next »