File size: 524 Bytes
1e94262
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--TEST--
Backtrace in with object as fiber callback
--FILE--
<?php

class Test
{
    public function __invoke(string $arg): void
    {
        Fiber::suspend();
        throw new Exception($arg);
    }
}

$fiber = new Fiber(new Test);

$fiber->start('test');

$fiber->resume();

?>
--EXPECTF--
Fatal error: Uncaught Exception: test in %sbacktrace-object.php:%d
Stack trace:
#0 [internal function]: Test->__invoke('test')
#1 %sbacktrace-object.php(%d): Fiber->resume()
#2 {main}
  thrown in %sbacktrace-object.php on line %d