dis-bench / src /php /php-src /Zend /tests /fibers /debug-backtrace.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
348 Bytes
--TEST--
Print backtrace in fiber
--FILE--
<?php
function inner_function(): void
{
debug_print_backtrace();
}
$fiber = new Fiber(function (): void {
inner_function();
});
$fiber->start();
?>
--EXPECTF--
#0 %sdebug-backtrace.php(9): inner_function()
#1 [internal function]: {closure:%s:%d}()
#2 %sdebug-backtrace.php(12): Fiber->start()