From: [EMAIL PROTECTED] Operating system: All PHP version: 5CVS-2003-06-16 (dev) PHP Bug Type: Zend Engine 2 problem Bug description: return @$var by reference leaks memory
Description: ------------ The following code produces memory leak at zend_execute.c(2739). The reason is that @$var is parsed like expression, not a variable, so the fetch goes as read fetch, not write fetch. Reproduce code: --------------- <?php function &method1() { return @$foo; } echo method1(); ?> -- Edit bug report at http://bugs.php.net/?id=24205&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24205&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24205&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24205&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24205&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24205&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24205&r=support Expected behavior: http://bugs.php.net/fix.php?id=24205&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24205&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24205&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24205&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24205&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24205&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24205&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24205&r=gnused