[php-src] PR #19315: Prevent resumption of generator suspended in yield from

From: Date: Wed, 30 Jul 2025 15:58:44 +0000
Subject: [php-src] PR #19315: Prevent resumption of generator suspended in yield from
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-32708@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/19315 Author: arnaud-lb Normally we prevent generators from being resumed while they are already running, but we failed to do so for generators delegating to non-Generators. As a result such generator can be resumed, terminated, which causes unexpected results (crashes) later. Fix this by ensuring that generators are marked as running while they fetch the next value from the delegate. Fixes GH-19306

« previous php.git-pulls (#32708) next »