xref: /PHP-8.0/Zend/tests/bug67368.phpt (revision 7aacc705)
1--TEST--
2Bug #67368 (Memory leak with immediately dereferenced array in class constant)
3--INI--
4report_memleaks=1
5--FILE--
6<?php
7class FooBar {
8        const bar = ["bar" => 3]["bar"];
9}
10echo "okey";
11?>
12--EXPECT--
13okey
14