#32437 [NEW]: two leaks in zend_execute.c when executing bug22836.phpt

From: Date: Wed, 23 Mar 2005 22:13:29 +0000
Subject: #32437 [NEW]: two leaks in zend_execute.c when executing bug22836.phpt
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-75772@lists.php.net to get a copy of this message
From: tony2001 at phpclub dot net Operating system: SuSE 9.2 PHP version: 5CVS-2005-03-23 (dev) PHP Bug Type: Zend Engine 2 problem Bug description: two leaks in zend_execute.c when executing bug22836.phpt 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 bug report at http://bugs.php.net/?id=32437&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32437&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32437&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32437&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32437&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32437&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32437&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32437&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32437&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32437&r=support Expected behavior: http://bugs.php.net/fix.php?id=32437&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32437&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32437&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32437&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32437&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32437&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32437&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32437&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32437&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32437&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32437&r=mysqlcfg

« previous php.bugs (#75772) next »