Skip to content

Commit

Permalink
Fix jit
Browse files Browse the repository at this point in the history
  • Loading branch information
joanhey authored and sebastianbergmann committed Apr 11, 2023
1 parent c336cb9 commit 906e02e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Runtime.php
Expand Up @@ -77,7 +77,13 @@ public function performsJustInTimeCompilation(): bool
return false;
}

if (strpos(ini_get('opcache.jit'), '0') === 0) {
$jit = ini_get('opcache.jit');

if (($jit === 'disable') || ($jit === 'off')) {
return false;
}

if (strrpos($jit, '0') === 3) {
return false;
}

Expand Down

0 comments on commit 906e02e

Please sign in to comment.