Bug #80475 [Opn->Fbk]: JIT - "Undefined variable" errors
| From: | dmitry@php.net | Date: | Mon, 14 Dec 2020 13:04:08 +0000 |
| Subject: | Bug #80475 [Opn->Fbk]: JIT - "Undefined variable" errors | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-231072@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80475&edit=1
ID: 80475
Updated by: dmitry@php.net
Reported by: herbert at groot dot jebbink dot nl
Summary: JIT - "Undefined variable" errors
-Status: Open
+Status: Feedback
Type: Bug
Package: JIT
Operating System: Linux Debian (crostini)
PHP Version: 8.0.0
Block user comment: N
Private report: N
New Comment:
Do you see the same problem without xdebug? (this may be some xdebug/JIT incompatibility).
We need a reproduction case to understand and fix this.
Previous Comments:
------------------------------------------------------------------------
[2020-12-03 05:03:50] herbert at groot dot jebbink dot nl
Description:
------------
I have with JIT "Undefined variable" errors in a big application that does not give this
error without JIT,
It happens when there is a global statement of a variable that does not exists, but if I use this
construction in a small example script then it works with JIT
./configure --with-apxs2=/usr/bin/apxs2 --with-mysql-sock=/run/mysqld/mysqld.sock --enable-mbstring
--enable-exif --enable-ftp --with-zip --enable-soap --with-mysqli --with-pdo-mysql --with-curl
--with-openssl --with-zlib --with-bz2 --enable-gd --with-webp --with-jpeg --with-xpm --with-freetype
--with-tidy --with-xsl --with-sodium --enable-shmop --with-pspell --with-pear
memory_limit = 2048M
display_errors = on
error_reporting = E_ALL
zend_extension=opcache.so
opcache.enable=1
opcache.enable_cli=1
opcache.jit_buffer_size=128M
extension=memcached.so
extension=yaml.so
zend_extension=xdebug.so
xdebug.mode=debug
Test script:
---------------
<?php
myFunc ('abc');
myFunc ('xyz');
function myFunc ($index) {
global $myVar;
$myVar [$index] = TRUE;
}
?>
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80475&edit=1