mirror of
https://github.com/php/php-src.git
synced 2024-12-04 15:23:44 +08:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
13 lines
210 B
PHP
13 lines
210 B
PHP
--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";
|
|
--EXPECT--
|
|
okey
|