#22900 [Opn->Csd]: Declaring the same namespace multiple times leaks memory

From: Date: Wed, 26 Mar 2003 16:11:01 +0000
Subject: #22900 [Opn->Csd]: Declaring the same namespace multiple times leaks memory
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-36486@lists.php.net to get a copy of this message
ID: 22900 Updated by: iliaa@php.net Reported By: mfischer@php.net -Status: Open +Status: Closed Bug Type: Zend Engine 2 problem Operating System: Linux PHP Version: 5CVS-2003-03-26 (dev) New Comment: This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2003-03-26 08:05:42] mfischer@php.net (using a debug build) Declaring the same namespace multiple times leaks memory. The leak is repeated for every further occurence of the same namespace. $ cat namesapce.php <?php namespace whatever { } ?> $ php namesapce.php $ $ cat namesapce.php <?php namespace whatever { } namespace whatever { } ?> $ php namesapce.php /home/mfischer/isrc/cvs/php5/Zend/zend_language_scanner.l(1114) : Freeing 0x401B0B70 (9 bytes), script=namesapce.php cat namesapce.php <?php namespace whatever { } namespace whatever { } namespace whatever { } ?> $ php namesapce.php /home/mfischer/isrc/cvs/php5/Zend/zend_language_scanner.l(1114) : Freeing 0x401B0BF8 (9 bytes), script=namesapce.php Last leak repeated 1 time ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22900&edit=1

« previous php.bugs (#36486) next »