mirror of
https://github.com/php/php-src.git
synced 2025-01-21 03:03:41 +08:00
17 lines
280 B
Plaintext
17 lines
280 B
Plaintext
|
--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
|