1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

Merge pull request #9342 from danog/fix_9340

Always use 0x7FFEBFFF opcache optimization level (fixes #9340)
This commit is contained in:
Bruce Weirdan 2023-02-19 16:23:55 -04:00 committed by GitHub
commit fbef36a248
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,6 +66,10 @@ class PsalmRestarter extends XdebugHandler
if (((int) ini_get('opcache.jit')) === 0) {
return true;
}
if (ini_get('opcache.optimization_level') !== '0x7FFEBFFF') {
return true;
}
}
return $default || $this->required;
@ -98,6 +102,7 @@ class PsalmRestarter extends XdebugHandler
'-dopcache.enable_cli=true',
'-dopcache.jit_buffer_size=512M',
'-dopcache.jit=1205',
'-dopcache.optimization_level=0x7FFEBFFF',
];
}