mirror of
https://github.com/php/php-src.git
synced 2024-12-14 04:16:30 +08:00
a287c3f776
Also fix general memory leak when root ast gets replaced in compile time evaluation
12 lines
183 B
PHP
12 lines
183 B
PHP
--TEST--
|
|
Constant expressions with empty dimension fetch on coalesce
|
|
--FILE--
|
|
<?php
|
|
|
|
const A = [][] ?? 1;
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot use [] for reading in %s.php on line %d
|
|
|