xref: /php-src/Zend/tests/gh8810_3.phpt (revision 08b2ab22)
1--TEST--
2GH-8810: Fix reported line number of multi-line closure call
3--FILE--
4<?php
5
6(function () {
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(%d): {closure:%s:%d}('foo')
18#1 {main}
19  thrown in %s on line 4
20