From: [EMAIL PROTECTED] Operating system: RH 8 PHP version: 5CVS-2003-11-02 (dev) PHP Bug Type: Zend Engine 2 problem Bug description: Memory leaks when creating an instance of an object
Description: ------------ ZE2 will leak when creating an instance of an object which does not actually get assigned to a variable Reproduce code: --------------- php -r 'class foo {} new foo();' Actual result: -------------- /home/john/working/php-src/Zend/zend_execute.c(3098) : Freeing 0x400D9BE0 (44 bytes), script=- /home/john/working/php-src/Zend/zend_API.c(713) : Actual location (location was relayed) /home/john/working/php-src/Zend/zend_API.c(714) : Freeing 0x400D9790 (32 bytes), script=- /home/john/working/php-src/Zend/zend_hash.c(157) : Actual location (location was relayed) /home/john/working/php-src/Zend/zend_execute.c(3097) : Freeing 0x400D9060 (16 bytes), script=- /home/john/working/php-src/Zend/zend_objects.c(106) : Freeing 0x400D9018 (12 bytes), script=- === Total 4 memory leaks detected === -- Edit bug report at http://bugs.php.net/?id=26077&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26077&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26077&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26077&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26077&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26077&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=26077&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26077&r=support Expected behavior: http://bugs.php.net/fix.php?id=26077&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26077&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26077&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26077&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26077&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26077&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26077&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26077&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26077&r=float