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