Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pcov extension uncompatible with JIT #112

Open
EvgenyLin opened this issue Sep 8, 2024 · 0 comments
Open

pcov extension uncompatible with JIT #112

EvgenyLin opened this issue Sep 8, 2024 · 0 comments

Comments

@EvgenyLin
Copy link

EvgenyLin commented Sep 8, 2024

When pcov extension is installed:

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

php >

But all works fine when I remove symlink file /etc/php/8.3/cli/conf.f/20-pcov

$ php -a
Interactive shell

php >

System info:

$ php -v
PHP 8.3.6 (cli) (built: Jun 13 2024 15:23:20) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.6, Copyright (c) Zend Technologies
with Zend OPcache v8.3.6, Copyright (c), by Zend Technologies
$ uname -a
Linux Dev 6.8.0-41-lowlatency #41.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 9 13:37:22 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

All software installed from official Ubuntu's repository.

Note: JIT must be enabled, so /etc/php/8.3/cli/conf.d/10-opcode must contain something similar to:

; configuration for php opcache module
zend_extension=opcache.so
opcache.enable = 1
opcache.enable_cli = 1
opcache.jit_buffer_size = 100M
opcache.jit = 1255

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant