]> granicus.if.org Git - php/commitdiff
MFH patch previously commited by Ilia
authorAntony Dovgal <tony2001@php.net>
Sun, 3 Apr 2005 11:55:44 +0000 (11:55 +0000)
committerAntony Dovgal <tony2001@php.net>
Sun, 3 Apr 2005 11:55:44 +0000 (11:55 +0000)
(memory leak when "S" is not listed in variable_order)

main/php_variables.c

index f65f961145c3e43ead3a7e933f0c87e57a4bef3a..85628ea7d8454e3eff65c7624d0f8b680242967b 100644 (file)
@@ -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++;