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);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php