[php-src] PR #15330: Do not scan generator frames more than once
| From: | arnaud-lb | Date: | Sat, 10 Aug 2024 14:22:17 +0000 |
| Subject: | [php-src] PR #15330: Do not scan generator frames more than once | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-27819@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/15330
Author: arnaud-lb
When a suspended Fiber contains a generator frame, the frame may be scanned twice: When scanning the
Fiber, and again when scanning the Generator.
This change fixes this.
This also fixes a memory leak when an internal function call frame has the
ZEND_CALL_RELEASE_THIS or ZEND_CALL_CLOSURE flags, as these was ignored
for internal calls in zend_unfinished_execution_gc_ex().