1--TEST--
2Backtrace in nested function call
3--FILE--
4<?php
5
6function suspend_fiber(): void
7{
8    \Fiber::suspend();
9    throw new Exception;
10}
11
12$fiber = new Fiber(function (): void {
13    suspend_fiber();
14});
15
16$fiber->start();
17
18$fiber->resume();
19
20?>
21--EXPECTF--
22Fatal error: Uncaught Exception in %sbacktrace-nested.php:%d
23Stack trace:
24#0 %sbacktrace-nested.php(%d): suspend_fiber()
25#1 [internal function]: {closure:%s:%d}()
26#2 %sbacktrace-nested.php(%d): Fiber->resume()
27#3 {main}
28  thrown in %sbacktrace-nested.php on line %d
29