From: Antony Dovgal Date: Sun, 3 Apr 2005 11:55:44 +0000 (+0000) Subject: MFH patch previously commited by Ilia X-Git-Tag: php-5.0.5RC1~495 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0d7b574472c3ebd6d3011c425571ce053e6669aa;p=php MFH patch previously commited by Ilia (memory leak when "S" is not listed in variable_order) --- diff --git a/main/php_variables.c b/main/php_variables.c index f65f961145..85628ea7d8 100644 --- a/main/php_variables.c +++ b/main/php_variables.c @@ -676,7 +676,6 @@ int php_hash_environment(TSRMLS_D) } zend_hash_update(&EG(symbol_table), auto_global_records[i].name, auto_global_records[i].name_len, &PG(http_globals)[i], sizeof(zval *), NULL); - PG(http_globals)[i]->refcount++; if (PG(register_long_arrays)) { zend_hash_update(&EG(symbol_table), auto_global_records[i].long_name, auto_global_records[i].long_name_len, &PG(http_globals)[i], sizeof(zval *), NULL); PG(http_globals)[i]->refcount++;