php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #81453 JIT (tracing mode only): Undefined array key
Submitted: 2021-09-17 13:06 UTC Modified: 2021-10-04 08:34 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: julien dot boudry at gmail dot com Assigned: krakjoe (profile)
Status: Closed Package: JIT
PHP Version: 8.1.0RC2 OS: Windows and Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: julien dot boudry at gmail dot com
New email:
PHP Version: OS:

 

 [2021-09-17 13:06 UTC] julien dot boudry at gmail dot com
Description:
------------
Happens only with JIT tracing mode (which is the default): working well in "function" mode, without JIT, and with or without opcache extension.

Impossible (for me) to reproduce in a simple PHP example. But I got the commit when the bug begin, and it's absolutely absurd. I hope that can help.



Test script:
---------------
#(ideal with Docker official images)

git clone https://github.com/julien-boudry/Condorcet.git
cd Condorcet

#(not necessary today)
git checkout 859c71c

# Working fine
php Dev/bugs/JitBug.php
# OR
php -dzend_extension=opcache -dopcache.enable_cli=1 Dev/bugs/JitBug.php
# OR
php -dzend_extension=opcache -dopcache.enable_cli=1 -dopcache.jit_buffer_size=100M -dopcache.jit=function Dev/bugs/JitBug.php
# Failing
php -dzend_extension=opcache -dopcache.enable_cli=1 -dopcache.jit_buffer_size=100M -dopcache.jit=tracing Dev/bugs/JitBug.php

# (the previous commit)
git checkout b3c8df1
# Retry the same commands and everything working fine


Expected result:
----------------
No error

Actual result:
--------------
Warning: Undefined array key...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-09-17 14:52 UTC] julien dot boudry at gmail dot com
(Without any connection or action create this incredible mess with JIT.  https://github.com/julien-boudry/Condorcet/commit/859c71c )
 [2021-10-03 13:43 UTC] julien dot boudry at gmail dot com
Not happening anymore with 8.1.0RC3
 [2021-10-04 08:34 UTC] krakjoe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: krakjoe
 [2021-10-04 08:34 UTC] krakjoe@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at
http://www.php.net/downloads.php


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 09 16:02:26 2025 UTC