tony2001                Sun Apr  3 07:55:44 2005 EDT

  Modified files:              (Branch: PHP_5_0)
    /php-src/main       php_variables.c 
  Log:
  MFH patch previously commited by Ilia
  (memory leak when "S" is not listed in variable_order)
  
  
http://cvs.php.net/diff.php/php-src/main/php_variables.c?r1=1.81.2.3&r2=1.81.2.4&ty=u
Index: php-src/main/php_variables.c
diff -u php-src/main/php_variables.c:1.81.2.3 
php-src/main/php_variables.c:1.81.2.4
--- php-src/main/php_variables.c:1.81.2.3       Wed Feb 16 23:46:10 2005
+++ php-src/main/php_variables.c        Sun Apr  3 07:55:44 2005
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: php_variables.c,v 1.81.2.3 2005/02/17 04:46:10 iliaa Exp $ */
+/* $Id: php_variables.c,v 1.81.2.4 2005/04/03 11:55:44 tony2001 Exp $ */
 
 #include <stdio.h>
 #include "php.h"
@@ -676,7 +676,6 @@
                }
 
                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++;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to