diff --git a/src/Runtime.php b/src/Runtime.php index 713cb04..02b6fb1 100644 --- a/src/Runtime.php +++ b/src/Runtime.php @@ -76,8 +76,14 @@ public function performsJustInTimeCompilation(): bool if (ini_get('opcache.jit_buffer_size') === '0') { return false; } + + $jit = ini_get('opcache.jit'); - if (strpos(ini_get('opcache.jit'), '0') === 0) { + if (($jit === 'disable') || ($jit === 'off')) { + return false; + } + + if (strrpos($jit, '0') === 3) { return false; }