php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80608 JIT failed to be enabled
Submitted: 2021-01-09 14:02 UTC Modified: 2021-01-26 09:44 UTC
Votes:19
Avg. Score:4.3 ± 0.7
Reproduced:19 of 19 (100.0%)
Same Version:11 (57.9%)
Same OS:6 (31.6%)
From: bahador dot mirzazadeh30 at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: JIT
PHP Version: 8.0.1 OS: Microsoft Windows
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2021-01-09 14:02 UTC] bahador dot mirzazadeh30 at gmail dot com
Description:
------------
Warning: JIT is incompatible with third party extensions that override zend_execute_ex(). JIT disabled. in Unknown on line 0

Test script:
---------------
<?php
print_r(opcache_get_status());


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-01-09 14:04 UTC] rtrtrtrtrt at dfdfdfdf dot dfd
how is it a bug when it even tells you that you have a technical incompatible 3rd party extension loaded?
 [2021-01-09 14:09 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-01-09 14:09 UTC] cmb@php.net
Please provide the list of extensions you have enabled (php -m).
 [2021-01-15 09:21 UTC] a dot kravchuk at realt dot by
Same problem
php -m output:

$ php -m
PHP Warning:  JIT is incompatible with third party extensions that override zend_execute_ex(). JIT disabled. in Unknown on line 0

Warning: JIT is incompatible with third party extensions that override zend_execute_ex(). JIT disabled. in Unknown on line 0
[PHP Modules]
Core
ctype
curl
date
dom
fileinfo
filter
ftp
hash
iconv
json
libxml
mbstring
mysqlnd
openssl
pcntl
pcov
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
readline
Reflection
session
SimpleXML
sockets
sodium
SPL
sqlite3
standard
tideways_xhprof
tokenizer
xdebug
xml
xmlreader
xmlwriter
Zend OPcache
zip
zlib

[Zend Modules]
Xdebug
Zend OPcache
 [2021-01-15 09:40 UTC] a dot kravchuk at realt dot by
removing the xdebug ext solved the problem
 [2021-01-15 10:11 UTC] cmb@php.net
> removing the xdebug ext solved the problem

Indeed, JIT is incompatible with extensions which setup user
opcode handlers (like Xdebug).  That is supposed to trigger a
warning[1].

Anyhow, let's see whether bahador had the same issue.

[1] <https://github.com/php/php-src/blob/php-8.0.1/ext/opcache/jit/zend_jit.c#L4193>
 [2021-01-24 04:22 UTC] php-bugs at lists dot php dot net
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.
 [2021-01-26 07:56 UTC] ricardo dot cescon at panthermedia dot net
I have the same issue on Ubuntu without xdebug ext.

Linux version 5.4.0-1029-aws (buildd@lcy01-amd64-021) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04))

PHP Warning:  JIT is incompatible with third party extensions that override zend_execute_ex(). JIT disabled. in Unknown on line 0
[PHP Modules]
apcu
calendar
Core
ctype
curl
date
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
hash
iconv
igbinary
imagick
json
libxml
mbstring
memcached
msgpack
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tideways
tokenizer
xml
xmlreader
xmlwriter
xsl
yaml
Zend OPcache
zlib
 [2021-01-26 09:44 UTC] cmb@php.net
Did you try without tideways?  In any way, that would not be a bug
in PHP, but might be improvable according to feature request
#80621.
 [2021-01-26 10:47 UTC] ricardo dot cescon at panthermedia dot net
Hello cmb@php.net,

thanks for your fast answer.
I tried now without tideways and it works.
How can I use JIT with Tideways?
Or dose this currently not work without the feature request
#80621?
 [2021-01-26 13:45 UTC] beberlei@php.net
Hey Ricardo,

we are working on support for Tideways with the JIT. It requires changing the profiling instrumentation to use an entirely new Zend API (Observer API), but we hope to complete this in February.
 [2021-04-09 04:55 UTC] george at betterde dot com
Try disabling the XHPROF or Xdebug extension
 [2024-03-23 07:25 UTC] archon810 at gmail dot com
It's been a few years, but this issue doesn't seem to have a solution yet. I just updated to PHP 8.2 and installed xdebug, and this warning keeps popping up.

Is there a resolution in 2024?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 16:01:29 2024 UTC