summaryrefslogtreecommitdiff
path: root/Zend/tests/exception_023.phpt
blob: 76892c82f213614cc179bee1b13468b40f2f1730 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Ensure proper backtraces with anon classes
--FILE--
<?php

(function($obj) {
    throw new Exception();
})(new class {});

?>
--EXPECTF--
Fatal error: Uncaught Exception in %s:%d
Stack trace:
#0 %s(%d): {closure}(Object(class@anonymous))
#1 {main}
  thrown in %s on line %d