From 84fef05939483040e2057fb92709ac872e191a55 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 31 May 2005 17:42:15 +0000 Subject: Fixed possible memory corruption on request shutdown `valgrind -q --tool=memcheck sapi/cli/php tests/reflection/001.phpt` --- main/php_variables.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main/php_variables.c') diff --git a/main/php_variables.c b/main/php_variables.c index 0283944615..d0a6c7d441 100644 --- a/main/php_variables.c +++ b/main/php_variables.c @@ -684,6 +684,8 @@ int php_hash_environment(TSRMLS_D) 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); -- cgit v1.2.1