History log of /PHP-8.2/Zend/tests/gh9916-004.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# 1173c2e6 27-Jan-2023 Arnaud Le Blanc

Prevent dtor of generator in suspended fiber (#10462)

Generators that suspended a fiber should not be dtor because they will be
executed during the fiber dtor.

Fiber dtor throws

Prevent dtor of generator in suspended fiber (#10462)

Generators that suspended a fiber should not be dtor because they will be
executed during the fiber dtor.

Fiber dtor throws an exception in the fiber's context in order to unwind and
execute finally blocks, which will also properly dtor the generator.

Fixes GH-9916

show more ...