[php-src] PR #25550: Fix GH-25540: Collect suspended Fibers with bound callbacks
| From: | akasakariko | Date: | Wed, 18 Nov 2026 12:02:16 +0000 |
| Subject: | [php-src] PR #25550: Fix GH-25540: Collect suspended Fibers with bound callbacks | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-40769@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25550
Author: akasakariko
Fixes #25540
> The Fiber already holds a reference to the callback receiver and reports it to GC, but the
> extra reference on the C stack keeps the cycle alive while suspended
>
> Reuse the Fiber’s reference when it matches the receiver and keep receiver pinning unchanged
> for other callers
Regression test: fails on unmodified [0m
data