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
20 lines
278 B
PHP
20 lines
278 B
PHP
--TEST--
|
|
GH-8810: Fix reported line number of multi-line closure call
|
|
--FILE--
|
|
<?php
|
|
|
|
(function () {
|
|
throw new Exception();
|
|
})
|
|
(
|
|
'foo',
|
|
);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Exception in %s:4
|
|
Stack trace:
|
|
#0 %s(6): {closure}('foo')
|
|
#1 {main}
|
|
thrown in %s on line 4
|