#26077 [Opn->Ver]: Memory leaks when creating an instance of an object

From: Date: Tue, 04 Nov 2003 06:00:43 +0000
Subject: #26077 [Opn->Ver]: Memory leaks when creating an instance of an object
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-49933@lists.php.net to get a copy of this message
ID: 26077 Updated by: sniper@php.net Reported By: john@php.net -Status: Open +Status: Verified Bug Type: Zend Engine 2 problem Operating System: RH 8 -PHP Version: 5CVS-2003-11-02 (dev) +PHP Version: 5CVS, 4CVS New Comment: Same seems to happen with PHP 4 too: /usr/src/php4/Zend/zend_API.c(594) : Freeing 0x0864B604 (44 bytes), script=- /usr/src/php4/Zend/zend_API.c(582) : Actual location (location was relayed) /usr/src/php4/Zend/zend_hash.c(188) : Freeing 0x0864B30C (32 bytes), script=- /usr/src/php4/Zend/zend_execute.c(1979) : Freeing 0x0864ABCC (12 bytes), script=- Previous Comments: ------------------------------------------------------------------------ [2003-11-02 05:53:44] john@php.net 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 this bug report at http://bugs.php.net/?id=26077&edit=1

« previous php.bugs (#49933) next »