#18108 [Opn->Ana]: memory leak in class encapsulated array with a constant as key
| From: | stas@php.net | Date: | Mon, 09 Sep 2002 15:32:53 +0000 |
| Subject: | #18108 [Opn->Ana]: 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-18805@lists.php.net to get a copy of this message | ||
ID: 18108
Updated by: stas@php.net
Reported By: sander@php.net
-Status: Open
+Status: Analyzed
Bug Type: Scripting Engine problem
Operating System: Debian Linux
PHP Version: 4.0CVS-2002-07-02
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:
------------------------------------------------------------------------
[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