From: crrodriguez at suse dot de Operating system: Linux PHP version: 5CVS-2007-10-01 (CVS) PHP Bug Type: Scripting Engine problem Bug description: $foo = clone(array()); leaks memory
Description: ------------ memory leak with the following code Reproduce code: --------------- <?php $foo = clone(array()); ?> Expected result: ---------------- Fatal Error: Only objects can be cloned Actual result: -------------- Warning: __clone method called on non-object in /home/cristian/5.3/clone_test.php on line 3 [Mon Oct 1 14:11:13 2007] Script: 'clone_test.php' /home/cristian/5.3/Zend/zend_vm_execute.h(18768) : Freeing 0x00C3D9A0 (72 bytes), script=clone_test.php /home/cristian/5.3/Zend/zend_API.c(821) : Actual location (location was relayed) Last leak repeated 1 time === Total 2 memory leaks detected === -- Edit bug report at http://bugs.php.net/?id=42818&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42818&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42818&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42818&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42818&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42818&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42818&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42818&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42818&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42818&r=support Expected behavior: http://bugs.php.net/fix.php?id=42818&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42818&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42818&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42818&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42818&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42818&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42818&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42818&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42818&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42818&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42818&r=mysqlcfg