BigInteger/Engines/PHP: Windows JIT impl issue has been resolved

This commit is contained in:
terrafrost 2023-11-24 06:01:28 -06:00
parent f71cc096db
commit 1513383a8c
1 changed files with 2 additions and 1 deletions

View File

@ -1332,7 +1332,8 @@ abstract class PHP extends Engine
*/
protected static function testJITOnWindows()
{
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' && function_exists('opcache_get_status') && !defined('PHPSECLIB_ALLOW_JIT')) {
// see https://github.com/php/php-src/issues/11917
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' && function_exists('opcache_get_status') && PHP_VERSION_ID < 80213 && !defined('PHPSECLIB_ALLOW_JIT')) {
$status = opcache_get_status();
if ($status && isset($status['jit']) && $status['jit']['enabled'] && $status['jit']['on']) {
return true;