[php-src] Issue #8573: php fiber How to hang up when you encounter sleep Run other programs
| From: | a6965921 | Date: | Tue, 17 May 2022 09:04:46 +0000 |
| Subject: | [php-src] Issue #8573: php fiber How to hang up when you encounter sleep Run other programs | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-241530@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8573
Author: a6965921
### Description
`
<?php
$fiber = new Fiber(function (): void {
$value = Fiber::suspend('fiber');
sleep(2);
});
$value = $fiber->start();
echo "Value from fiber suspending: ", $value, PHP_EOL;
$fiber->resume('test');
?>
`
### PHP Version
php8.1
### Operating System
centos