ID: 32437 Updated by: [EMAIL PROTECTED] Reported By: tony2001 at phpclub dot net -Status: Open +Status: Feedback Bug Type: Zend Engine 2 problem Operating System: SuSE 9.2 PHP Version: 5CVS-2005-03-23 (dev) New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2005-03-23 23:13:28] tony2001 at phpclub dot net Description: ------------ Found 2 leaks in zend_execute.c when executing Zend/tests/bug22836.phpt. /usr/src/dev/php-src_5_0_clean/Zend/zend_execute.c(616) : Freeing 0x1BF0F544 (4 bytes), script=/www/index.php /usr/src/dev/php-src_5_0_clean/Zend/zend_variables.c(137) : Actual location (location was relayed) /usr/src/dev/php-src_5_0_clean/Zend/zend_execute.c(271) : Freeing 0x1BF0FBB4 (16 bytes), script=/www/index.php Reproduce code: --------------- The same as in bug #22836. Pasting it here for additional convenience. <?php function &f() { $x = "foo"; var_dump($x); print "'$x'\n"; return ($a); } for ($i = 0; $i < 8; $i++) { $h =& f(); } ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32437&edit=1