[php-src] Issue #25254: [PHP 8.4] Tracing JIT wrong optimization for LazyProxy instances
| From: | Firehed | Date: | Fri, 06 Nov 2026 22:22:33 +0000 |
| Subject: | [php-src] Issue #25254: [PHP 8.4] Tracing JIT wrong optimization for LazyProxy instances | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-254043@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/25254
Author: Firehed
### Description
The same issue described in https://github.com/php/php-src/issues/23628
exists on the 8.4 line. It doesn't apply to 8.3 and earlier since LazyProxy wasn't added
yet. It doesn't appear that the fix was backported. I figured opening a new issue for the
backport request was more likely to be seen than commenting on the already-closed one :)
The existing regression tests added in the patch fail on 8.4.27 (and I assume earlier) but if you
need any additional information, I'm happy to provide it.
- PHP: 8.4.27 (cli), NTS, built Nov 5 2026, from docker-library/php
- Base image: php:8.4.27-fpm-alpine3.23 (Alpine 3.23.8, x86_64)
- JIT settings: opcache.enable_cli=1, opcache.jit=tracing, opcache.jit_buffer_size=64M,
opcache.jit_hot_loop=64
- Extra extensions loaded: apcu and excimer. Excimer is worth naming because it hooks into the
engine, though the A/B test showed JIT alone decides pass or fail.
### PHP Version
```plain
PHP 8.4.27 (cli) (built: Nov 5 2026 19:02:58) (NTS)
Copyright (c) The PHP Group
Built by https://github.com/docker-library/php
Zend Engine v4.4.27, Copyright (c) Zend Technologies
with Zend OPcache v8.4.27, Copyright (c), by Zend Technologies
```
### Operating System
Alpine Linux 3.23.8 (official php alpine docker image)