cvs: ZendEngine2(PHP_5_1) / zend_alloc.c php-src NEWS

From: Date: Thu, 18 Aug 2005 15:14:12 +0000
Subject: cvs: ZendEngine2(PHP_5_1) / zend_alloc.c php-src NEWS
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4041@lists.php.net to get a copy of this message
iliaa Thu Aug 18 11:14:12 2005 EDT Modified files: (Branch: PHP_5_1) /php-src NEWS /ZendEngine2 zend_alloc.c Log: MFH: Fixed bug #34156 (memory usage remains elevated after memory limit is reached); http://cvs.php.net/diff.php/php-src/NEWS?r1=1.2027.2.20&r2=1.2027.2.21&ty=u Index: php-src/NEWS diff -u php-src/NEWS:1.2027.2.20 php-src/NEWS:1.2027.2.21 --- php-src/NEWS:1.2027.2.20 Wed Aug 17 21:14:42 2005 +++ php-src/NEWS Thu Aug 18 11:14:11 2005 @@ -12,6 +12,8 @@ - Fixed "make test" to work for phpized extensions. (Hartmut, Jani) - Fixed failing queries (FALSE returned) with mysqli_query() on 64 bit systems. (Andrey) +- Fixed bug #34156 (memory usage remains elevated after memory limit is + reached). (Ilia) - Fixed bug #34148 (+,- and . not supported as parts of scheme). (Ilia) - Fixed bug #34103 (line numbering not maintained in dom document). (Rob) - Fixed bug #34078 (Reflection API problems in methods with boolean or http://cvs.php.net/diff.php/ZendEngine2/zend_alloc.c?r1=1.144&r2=1.144.2.1&ty=u Index: ZendEngine2/zend_alloc.c diff -u ZendEngine2/zend_alloc.c:1.144 ZendEngine2/zend_alloc.c:1.144.2.1 --- ZendEngine2/zend_alloc.c:1.144 Wed Aug 3 09:30:47 2005 +++ ZendEngine2/zend_alloc.c Thu Aug 18 11:14:12 2005 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_alloc.c,v 1.144 2005/08/03 13:30:47 sniper Exp $ */ +/* $Id: zend_alloc.c,v 1.144.2.1 2005/08/18 15:14:12 iliaa Exp $ */ #include "zend.h" #include "zend_alloc.h" @@ -75,7 +75,8 @@ #define _CHECK_MEMORY_LIMIT(s, rs, file, lineno) { AG(allocated_memory) += rs;\ if (AG(memory_limit)<AG(allocated_memory)) {\ int php_mem_limit = AG(memory_limit); \ - if (EG(in_execution) && AG(memory_limit)+1048576 > AG(allocated_memory) - rs) { \ + AG(allocated_memory) -= rs; \ + if (EG(in_execution) && AG(memory_limit)+1048576 > AG(allocated_memory)) { \ AG(memory_limit) = AG(allocated_memory) + 1048576; \ if (file) { \ zend_error(E_ERROR,"Allowed memory size of %d bytes exhausted at %s:%d (tried to allocate %d bytes)", php_mem_limit, file, lineno, s); \

« previous php.zend-engine.cvs (#4041) next »