Skip to content

Commit

Permalink
Always use 0x7FFEBFFF opcache optimization level (fixes #9340)
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Feb 19, 2023
1 parent d934875 commit 5df21fe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Psalm/Internal/Fork/PsalmRestarter.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ protected function requiresRestart($default): bool
if (((int) ini_get('opcache.jit')) === 0) {
return true;
}

if (ini_get('opcache.optimization_level') !== '0x7FFEBFFF') {
return true;
}
}

return $default || $this->required;
Expand Down Expand Up @@ -98,6 +102,7 @@ protected function restart(array $command): void
'-dopcache.enable_cli=true',
'-dopcache.jit_buffer_size=512M',
'-dopcache.jit=1205',
'-dopcache.optimization_level=0x7FFEBFFF',
];
}

Expand Down

0 comments on commit 5df21fe

Please sign in to comment.