mirror of
https://github.com/php/php-src.git
synced 2024-09-29 13:56:09 +00:00
13 lines
211 B
Plaintext
13 lines
211 B
Plaintext
|
--TEST--
|
||
|
Bug #67368 (Memory leak with immediately dereferenced array in class constant)
|
||
|
--INI--
|
||
|
report_memleaks=1
|
||
|
--FILE--
|
||
|
<?php
|
||
|
class FooBar {
|
||
|
const bar = ["bar" => 3]["bar"];
|
||
|
}
|
||
|
echo "okey";
|
||
|
--EXPECTF--
|
||
|
okey
|