cvs: php-src /main php_variables.c

From: Date: Tue, 31 May 2005 17:42:15 +0000
Subject: cvs: php-src /main php_variables.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-32054@lists.php.net to get a copy of this message
dmitry Tue May 31 13:42:15 2005 EDT Modified files: /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.94&r2=1.95&ty=u Index: php-src/main/php_variables.c diff -u php-src/main/php_variables.c:1.94 php-src/main/php_variables.c:1.95 --- php-src/main/php_variables.c:1.94 Wed May 25 13:41:50 2005 +++ php-src/main/php_variables.c Tue May 31 13:42:15 2005 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_variables.c,v 1.94 2005/05/25 17:41:50 dmitry Exp $ */ +/* $Id: php_variables.c,v 1.95 2005/05/31 17:42:15 dmitry Exp $ */ #include <stdio.h> #include "php.h" @@ -684,6 +684,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 (#32054) next »