#18108 [Ana->Csd]: memory leak in class encapsulated array with a constant as key

From: Date: Mon, 09 Sep 2002 15:34:02 +0000
Subject: #18108 [Ana->Csd]: memory leak in class encapsulated array with a constant as key
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-18806@lists.php.net to get a copy of this message
ID: 18108 Updated by: kalowsky@php.net Reported By: sander@php.net -Status: Analyzed +Status: Closed Bug Type: Scripting Engine problem Operating System: Debian Linux PHP Version: 4.0CVS-2002-07-02 New Comment: Closed = fixed in CVS :) Previous Comments: ------------------------------------------------------------------------ [2002-09-09 10:32:53] stas@php.net 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. ------------------------------------------------------------------------ [2002-07-02 09:07:36] sander@php.net The following code leaks sizeof("blaat") bytes of memory /Zend/zend_language_scanner.l(1358) : Freeing 0x084B0E34 (6 bytes), script=... <?php define('foo', 1); class bar { $baz = array(foo => "blaat"); /* var $baz ... has the same effect */ } ?> This only happens when the array key is an constant, and the syntax is used inside a class. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18108&edit=1

« previous php.bugs (#18806) next »