dis-bench / src /php /php-src /Zend /tests /constexpr /gh7771_2.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
377 Bytes
--TEST--
GH-7771 (Incorrect file/line for class constant expression exceptions)
--FILE--
<?php
include __DIR__ . '/gh7771_2_definition.inc';
new Foo();
?>
--EXPECTF--
Fatal error: Uncaught Error: Class "NonExistent" not found in %sgh7771_2_definition.inc:6
Stack trace:
#0 %sgh7771_2.php(5): [constant expression]()
#1 {main}
thrown in %sgh7771_2_definition.inc on line 6