php-src/Zend/tests/constant_expressions_coalesce_empty_dim.phpt
Bob Weinand a287c3f776 Fix magic constants (__LINE__) with ?? for constant scalar exprs
Also fix general memory leak when root ast gets replaced in compile time evaluation
2016-04-21 02:45:09 +02:00

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