[PHP 8.4] Tracing JIT wrong optimization for LazyProxy instances

Aperta
#25,254 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c, php

Direzione di ricerca

Start by reading the linked PHP core issue #23628 and its patch, then run the existing regression tests mentioned there on PHP 8.4 with tracing JIT enabled. The report says those tests fail on PHP 8.4.27 and asks for the fix to be backported; done means the relevant tests pass on the 8.4 line with tracing JIT enabled. The issue does not name source files or tests, so finding the affected code will take familiarity with the PHP engine.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Bug Status: Needs Triage
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
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)

Lingua principale
C
Stelle
41.8k
Fork
8.5k
Merge medio
2g 12h
PR unite (30g)
137

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di php/php-src

Tutte le issue di php/php-src

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.