Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions src/Psalm/Internal/Cli/Psalm.php
Original file line number Diff line number Diff line change
Expand Up @@ -1002,10 +1002,19 @@ private static function restart(
. 'JIT acceleration: ON'
. PHP_EOL . PHP_EOL);
} else {
$progress->write(PHP_EOL
. 'JIT acceleration: OFF (an error occurred while enabling JIT)' . PHP_EOL
. 'Please report this to https://github.com/vimeo/psalm with your OS and PHP configuration!'
. PHP_EOL . PHP_EOL);
$jitSetting = ini_get('opcache.jit');
if ($jitSetting === false || $jitSetting === '' || $jitSetting === '0'
|| in_array(strtolower($jitSetting), ['off', 'disable', 'disabled'], true)
) {
$progress->write(PHP_EOL
. 'JIT acceleration: OFF (opcache.jit is disabled)'
. PHP_EOL . PHP_EOL);
} else {
$progress->write(PHP_EOL
. 'JIT acceleration: OFF (an error occurred while enabling JIT)' . PHP_EOL
. 'Please report this to https://github.com/vimeo/psalm with your OS and PHP configuration!'
. PHP_EOL . PHP_EOL);
}
}
} else {
$progress->write(PHP_EOL
Expand Down
Loading