Bug #80475 [Fbk->NoF]: JIT - "Undefined variable" errors
| From: | php-bugs at lists dot php dot net | Date: | Sun, 27 Dec 2020 04:22:10 +0000 |
| Subject: | Bug #80475 [Fbk->NoF]: JIT - "Undefined variable" errors | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-231264@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: php-bugs@lists.php.net
Reported by: herbert at groot dot jebbink dot nl
Summary: JIT - "Undefined variable" errors
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: JIT
Operating System: Linux Debian (crostini)
PHP Version: 8.0.0
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2020-12-14 13:04:08] dmitry@php.net
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.
------------------------------------------------------------------------
[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