diff options
author | Dmitry Stogov <dmitry@php.net> | 2005-05-31 17:42:15 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2005-05-31 17:42:15 +0000 |
commit | 84fef05939483040e2057fb92709ac872e191a55 (patch) | |
tree | d3a1e2d87bffd4e11406db99032886b2600130e8 /main | |
parent | dac8f964f22094ea50604fdc9fa1a7885d75a423 (diff) | |
download | php-git-84fef05939483040e2057fb92709ac872e191a55.tar.gz |
Fixed possible memory corruption on request shutdown
`valgrind -q --tool=memcheck sapi/cli/php tests/reflection/001.phpt`
Diffstat (limited to 'main')
-rw-r--r-- | main/php_variables.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |