[php-src] PR #18556: Allow Closures to reuse their run_time_cache when opcache is enabled
| From: | arnaud-lb | Date: | Wed, 14 May 2025 16:20:27 +0000 |
| Subject: | [php-src] PR #18556: Allow Closures to reuse their run_time_cache when opcache is enabled | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-31679@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/18556
Author: arnaud-lb
Possible alternative fix for GH-10782
This implements the approach described in https://github.com/php/php-src/issues/10782#issuecomment-1458132038:
> may be storing "scope" in the first slot of the closure's run_time_cache
Unfortunately this results in a small regression on the Symfony benchmark (0.20% wall time, 0.03%
icount).