mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
44cd74b624
Closes GH-8810 Closes GH-8818
23 lines
307 B
PHP
23 lines
307 B
PHP
--TEST--
|
|
GH-8810: Fix reported line number of multi-line function call
|
|
--FILE--
|
|
<?php
|
|
|
|
function foo($bar, $baz) {
|
|
throw new Exception();
|
|
}
|
|
|
|
foo
|
|
(
|
|
'bar',
|
|
'baz',
|
|
);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Exception in %s:4
|
|
Stack trace:
|
|
#0 %s(7): foo('bar', 'baz')
|
|
#1 {main}
|
|
thrown in %s on line 4
|