Bug #18108: memory leak in class encapsulated array with a constant as key

From: Date: Tue, 02 Jul 2002 13:07:37 +0000
Subject: Bug #18108: memory leak in class encapsulated array with a constant as key
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-12792@lists.php.net to get a copy of this message
From: sander@php.net Operating system: Debian Linux PHP version: 4.0CVS-2002-07-02 PHP Bug Type: Scripting Engine problem Bug description: memory leak in class encapsulated array with a constant as key 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 bug report at http://bugs.php.net/?id=18108&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18108&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18108&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18108&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18108&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18108&r=support Expected behavior: http://bugs.php.net/fix.php?id=18108&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18108&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18108&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18108&r=globals

« previous php.bugs (#12792) next »