1234567891011121314151617 |
- --TEST--
- Fast finishing fiber does not leak
- --FILE--
- <?php
- $fiber = new Fiber(fn() => 'test');
- var_dump($fiber->isStarted());
- var_dump($fiber->start());
- var_dump($fiber->getReturn());
- var_dump($fiber->isTerminated());
- ?>
- --EXPECT--
- bool(false)
- NULL
- string(4) "test"
- bool(true)
|