xref: /PHP-7.3/Zend/tests/exception_023.phpt (revision c83cbdf6)
1--TEST--
2Ensure proper backtraces with anon classes
3--FILE--
4<?php
5
6(function($obj) {
7	throw new Exception();
8})(new class {});
9
10?>
11--EXPECTF--
12Fatal error: Uncaught Exception in %s:%d
13Stack trace:
14#0 %s(%d): {closure}(Object(class@anonymous))
15#1 {main}
16  thrown in %s on line %d
17