summaryrefslogtreecommitdiff
path: root/Zend/tests/bug79790.phpt
blob: 4fce25291bcb58a102c700c278b04f69f40b0474 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--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: Illegal offset type in %s:%d
Stack trace:
#0 %s(%d): b()
#1 {main}
  thrown in %s on line %d