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