Bug #81453 [NEW]: JIT (tracing mode only): Undefined array key

From: Date: Fri, 17 Sep 2021 13:06:54 +0000
Subject: Bug #81453 [NEW]: JIT (tracing mode only): Undefined array key
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-236665@lists.php.net to get a copy of this message
From: julien dot boudry at gmail dot com Operating system: Windows and Linux PHP version: 8.1.0RC2 Package: JIT Bug Type: Bug Bug description:JIT (tracing mode only): Undefined array key 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... -- Edit bug report at https://bugs.php.net/bug.php?id=81453&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=81453&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=81453&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=81453&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=81453&r=needscript Try newer version: https://bugs.php.net/fix.php?id=81453&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=81453&r=support Expected behavior: https://bugs.php.net/fix.php?id=81453&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=81453&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=81453&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=81453&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=81453&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=81453&r=dst IIS Stability: https://bugs.php.net/fix.php?id=81453&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=81453&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=81453&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=81453&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=81453&r=mysqlcfg

« previous php.bugs (#236665) next »