Switching fibers in destructors is not possible

Added a notice to document the fact that it's currently impossible to switch fibers in the destructor of an object cfr https://github.com/php/php-src/issues/8723.

Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-1620.
This commit is contained in:
Bart Vanhoutte 2022-06-09 15:34:52 +02:00 committed by GitHub
parent 4bf21e8867
commit 55956ac4e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,6 +34,11 @@
or by throwing an exception into the fiber using <methodname>Fiber::throw</methodname>. The value is returned
(or exception thrown) from <methodname>Fiber::suspend</methodname>.
</para>
<note>
<simpara>
Due to current limitations it is not possible to switch fibers in the destructor of an object.
</simpara>
</note>
<example xml:id="language.fiber.example.basic"><!-- {{{ -->
<title>Basic usage</title>