Memory leak with immediately dereferenced array in class constant

 [2014-06-01 16:27 UTC] ajf at ajf dot me

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 ===


 [2014-06-01 16:27 UTC] ajf@php.net

-Assigned To: +Assigned To: bwoebi