|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-12-03 10:58 UTC] cmb@php.net
-Package: Unknown/Other Function
+Package: JIT
[2020-12-14 13:04 UTC] dmitry@php.net
-Status: Open
+Status: Feedback
[2020-12-14 13:04 UTC] dmitry@php.net
[2020-12-27 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 04:00:02 2025 UTC |
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; } ?>