From 1513383a8c6f8485f38b425b5cfd7f8f78e6346b Mon Sep 17 00:00:00 2001 From: terrafrost Date: Fri, 24 Nov 2023 06:01:28 -0600 Subject: [PATCH] BigInteger/Engines/PHP: Windows JIT impl issue has been resolved --- phpseclib/Math/BigInteger/Engines/PHP.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpseclib/Math/BigInteger/Engines/PHP.php b/phpseclib/Math/BigInteger/Engines/PHP.php index 4c30da56..7e85783e 100644 --- a/phpseclib/Math/BigInteger/Engines/PHP.php +++ b/phpseclib/Math/BigInteger/Engines/PHP.php @@ -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;