|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-06-01 16:27 UTC] ajf@php.net
-Assigned To:
+Assigned To: bwoebi
[2014-06-24 05:53 UTC] laruence@php.net
[2014-06-24 05:53 UTC] laruence@php.net
-Status: Assigned
+Status: Closed
[2014-06-30 20:23 UTC] dmitry@php.net
[2014-07-02 01:41 UTC] tyrael@php.net
[2014-07-02 08:26 UTC] ab@php.net
[2014-07-02 08:33 UTC] ab@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 08:00:01 2025 UTC |
Description: ------------ Running the code produces a memory leak warning on the command line when PHP is compiled with --debug. This issue doesn't exist for constants outside of classes. Test script: --------------- <?php class FooBar { const bar = ["bar" => 3]["bar"]; } Actual result: -------------- [Sun Jun 1 17:23:06 2014] Script: '-' /Users/ajf/Projects/2014/PHP/php-src/Zend/zend_compile.c(5450) : Freeing 0x10D027DC8 (32 bytes), script=- === Total 1 memory leaks detected ===