Re: [PHP-DEV] [RFC] Fiber support (again)

2018-02-10 Thread Niklas Keller
>> There would also need to be something that stops the script execution >> as soon as there's no non-suspended Fiber anymore. > > As you pointed out, the main process cannot be a Fiber because it need to > schedule other fibers. The conclusion is wrong. There just needs to be a way to access

Re: [PHP-DEV] [RFC] Fiber support (again)

2018-02-10 Thread 吕海涛
> On Feb 10, 2018, at 22:49, Niklas Keller wrote: > >> Hi, all, >> >> I have updated the RFC https://wiki.php.net/rfc/fiber >> >> changes list: >> >> - introduce the `throw(Exception $exceptin)` API >> - record issues discussed > > What about my suggestion of making PHP's

Re: [PHP-DEV] [RFC] Fiber support (again)

2018-02-10 Thread Niklas Keller
> Hi, all, > > I have updated the RFC https://wiki.php.net/rfc/fiber > > changes list: > > - introduce the `throw(Exception $exceptin)` API > - record issues discussed What about my suggestion of making PHP's main() automatically a Fiber, which avoids Fiber::yield() being used outside of a Fiber,

Re: [PHP-DEV] [RFC] Fiber support (again)

2018-02-10 Thread Haitao Lv
Hi, all, I have updated the RFC https://wiki.php.net/rfc/fiber changes list: - introduce the `throw(Exception $exceptin)` API - record issues discussed > On Feb 9, 2018, at 08:12, Haitao Lv wrote: > >> >> On Feb 9, 2018, at 06:22, Niklas Keller wrote: >>