php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80433 Unable to disable the use of the AVX command when generating JIT to generate ma
Submitted: 2020-11-27 09:21 UTC Modified: 2020-11-27 11:30 UTC
From: zttptk3h at wellsfargocomcardholders dot com Assigned: nikic (profile)
Status: Closed Package: *Configuration Issues
PHP Version: 8.0.0 OS: Linux 5.9.10-200.fc33.x86_64
Private report: No CVE-ID: None
 [2020-11-27 09:21 UTC] zttptk3h at wellsfargocomcardholders dot com
Description:
------------
My CPU does not support AVX instructions. Unable to disable the use of the AVX command when generating JIT to generate machine code.

[opcache]
zend_extension = opcache.so

opcache.enable = 1
opcache.enable_cli = 1
opcache.validate_timestamps = 1
; opcache.save_comments = 1
opcache.revalidate_freq = 15
opcache.max_accelerated_files = 1024
opcache.memory_consumption = 64
opcache.interned_strings_buffer = 8

opcache.jit = 0205
opcache.jit_buffer_size = 64M

Actual result:
--------------
PHP Warning:  Invalid "opcache.jit" setting. Should be "disable", "on", "off" or 4-digit number in Unknown on line 0
PHP 8.0.0 (cli) (built: Nov 27 2020 08:51:50) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.0-dev, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.0, Copyright (c), by Zend Technologies


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-11-27 09:52 UTC] [email protected]
-Status: Open +Status: Closed
 [2020-11-27 10:21 UTC] [email protected]
-Assigned To: +Assigned To: nikic
 [2020-11-27 10:21 UTC] [email protected]
As a workaround, you can use opcache.jit=205 for now.

It should be noted that AVX use is supposed to be automatically disabled if it's not available, but for some reason this is not working for you. I've applied a speculative fix in https://github.com/php/php-src/commit/2772f7c3ad1537e2dc265a94faf09ecdacead9f2, though if that fixes it that means our own cpuid code is broken.
 [2020-11-27 11:30 UTC] [email protected]
Candidate fix for AVX detection: https://github.com/php/php-src/pull/6460
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jun 13 18:01:37 2025 UTC