Skip to content

Commit

Permalink
E_STRICT deprecated in PHP 8.4
Browse files Browse the repository at this point in the history
JIT on AArch64 doesn't support opcache.jit_buffer_size above 128M
  • Loading branch information
GromNaN committed Oct 3, 2024
1 parent 06ae404 commit f1e9ba2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/Psalm/Internal/ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use function set_exception_handler;

use const E_ALL;
use const E_STRICT;
use const STDERR;

/**
Expand Down Expand Up @@ -59,7 +58,7 @@ private function __construct()

private static function setErrorReporting(): void
{
error_reporting(E_ALL | E_STRICT);
error_reporting(E_ALL | 2048 /* E_STRICT deprecated in PHP 8.4 */);
ini_set('display_errors', '1');
}

Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Internal/Fork/PsalmRestarter.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ protected function restart($command): void
if (PHP_VERSION_ID >= 8_00_00 && $opcache_loaded) {
$additional_options = [
'-dopcache.enable_cli=true',
'-dopcache.jit_buffer_size=512M',
'-dopcache.jit_buffer_size=128M', // JIT on AArch64 doesn't support opcache.jit_buffer_size above 128M
'-dopcache.jit=1205',
'-dopcache.optimization_level=0x7FFEBFFF',
'-dopcache.preload=',
Expand Down

0 comments on commit f1e9ba2

Please sign in to comment.