xref: /php-src/Zend/tests/gh7771_2.phpt (revision 9e097822)
1--TEST--
2GH-7771 (Incorrect file/line for class constant expression exceptions)
3--FILE--
4<?php
5
6include __DIR__ . '/gh7771_2_definition.inc';
7
8new Foo();
9
10?>
11--EXPECTF--
12Fatal error: Uncaught Error: Class "NonExistent" not found in %sgh7771_2_definition.inc:6
13Stack trace:
14#0 %sgh7771_2.php(5): [constant expression]()
15#1 {main}
16  thrown in %sgh7771_2_definition.inc on line 6
17