|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-09-09 10:32 UTC] stas@php.net
[2002-09-09 10:34 UTC] kalowsky@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 15:00:01 2025 UTC |
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.