Skip to content

Commit

Permalink
Merge pull request #1940 from pafernandez-oesia/patch-1
Browse files Browse the repository at this point in the history
Fix Undefined index jit notice
  • Loading branch information
terrafrost committed Sep 18, 2023
2 parents b6bd1c5 + 105edca commit 4db5893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpseclib/bootstrap.php
Expand Up @@ -24,7 +24,7 @@
// see https://github.com/php/php-src/issues/11917
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' && function_exists('opcache_get_status') && !defined('PHPSECLIB_ALLOW_JIT')) {
$status = opcache_get_status();
if ($status && $status['jit']['enabled'] && $status['jit']['on']) {
if ($status && isset($status['jit']) && $status['jit']['enabled'] && $status['jit']['on']) {
throw new UnexpectedValueException(
'JIT on Windows is not currently supported'
);
Expand Down

0 comments on commit 4db5893

Please sign in to comment.