mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
641fe23e3a
Co-authored-by: Marcos Marcolin <marcos@ixcsoft.com.br>
16 lines
346 B
PHP
16 lines
346 B
PHP
--TEST--
|
|
Bug #79790: "Illegal offset type" exception during AST evaluation not handled properly
|
|
--FILE--
|
|
<?php
|
|
b();
|
|
function b($a = array()[array ()]) {
|
|
++$c[function () {}];
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught TypeError: Cannot access offset of type array on array in %s:%d
|
|
Stack trace:
|
|
#0 %s(%d): b()
|
|
#1 {main}
|
|
thrown in %s on line %d
|