Re: Closure::getCurrent() for recursion
| From: | Tim Düsterhus | Date: | Tue, 01 Apr 2025 09:02:25 +0000 |
| Subject: | Re: Closure::getCurrent() for recursion | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-126997@lists.php.net to get a copy of this message | ||
Hi
Am 2025-03-31 22:38, schrieb Ilija Tovilo:
Do you have thoughts or concerns with this solution? If not, I'm planning to merge it into master in a few weeks.I don't particularly like this kind of “magic scope / backtrace introspecting” functions, but it certainly is a pragmatic solution (and there's sufficient precedent, including
Fiber::getCurrent()).
Best regards
Tim Düsterhus