xref: /php-src/Zend/tests/gh8810_7.phpt (revision 44cd74b6)
1--TEST--
2GH-8810: Fix reported line number of multi-line new call
3--FILE--
4<?php
5
6class A {
7    public function __construct() {
8        throw new Exception();
9    }
10}
11
12new
13    A
14    ();
15
16?>
17--EXPECTF--
18Fatal error: Uncaught Exception in %s:5
19Stack trace:
20#0 %s(10): A->__construct()
21#1 {main}
22  thrown in %s on line 5
23