xref: /php-src/Zend/tests/gh8810_4.phpt (revision 44cd74b6)
1--TEST--
2GH-8810: Fix reported line number of multi-line dynamic call
3--FILE--
4<?php
5
6function foo() {
7    throw new Exception();
8}
9
10'foo'
11    ();
12
13?>
14--EXPECTF--
15Fatal error: Uncaught Exception in %s:4
16Stack trace:
17#0 %s(8): foo()
18#1 {main}
19  thrown in %s on line 4
20