Skip to content

Commit

Permalink
BigInteger/Engines/PHP: Windows JIT impl issue has been resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
terrafrost committed Nov 24, 2023
1 parent f71cc09 commit 1513383
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion phpseclib/Math/BigInteger/Engines/PHP.php
Expand Up @@ -1332,7 +1332,8 @@ private function bitwise_small_split($split)
*/
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;
Expand Down

0 comments on commit 1513383

Please sign in to comment.