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
24 lines
314 B
PHP
24 lines
314 B
PHP
--TEST--
|
|
GH-8810: Fix reported line number of multi-line method call
|
|
--FILE--
|
|
<?php
|
|
|
|
class A {
|
|
public function b() {
|
|
throw new Exception();
|
|
}
|
|
}
|
|
|
|
(new A())
|
|
->
|
|
b
|
|
();
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Exception in %s:5
|
|
Stack trace:
|
|
#0 %s(11): A->b()
|
|
#1 {main}
|
|
thrown in %s on line 5
|