php-src/Zend/tests/gh8810_7.phpt
Ilija Tovilo 44cd74b624
Fix lineno in backtrace of multi-line function calls
Closes GH-8810
Closes GH-8818
2022-06-23 16:10:32 +02:00

23 lines
318 B
PHP

--TEST--
GH-8810: Fix reported line number of multi-line new call
--FILE--
<?php
class A {
public function __construct() {
throw new Exception();
}
}
new
A
();
?>
--EXPECTF--
Fatal error: Uncaught Exception in %s:5
Stack trace:
#0 %s(10): A->__construct()
#1 {main}
thrown in %s on line 5