mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
apparently opcache_get_status() may return false?
This commit is contained in:
parent
2588895ab0
commit
bd5f379c4c
@ -139,8 +139,8 @@ namespace pocketmine {
|
|||||||
if(\Phar::running(true) === ""){
|
if(\Phar::running(true) === ""){
|
||||||
$logger->warning("Non-packaged installation detected. This will degrade autoloading speed and make startup times longer.");
|
$logger->warning("Non-packaged installation detected. This will degrade autoloading speed and make startup times longer.");
|
||||||
}
|
}
|
||||||
if(function_exists('opcache_get_status')){
|
if(function_exists('opcache_get_status') && ($opcacheStatus = opcache_get_status(false)) !== false){
|
||||||
$jitEnabled = opcache_get_status(false)["jit"]["on"] ?? false;
|
$jitEnabled = $opcacheStatus["jit"]["on"] ?? false;
|
||||||
if($jitEnabled !== false){
|
if($jitEnabled !== false){
|
||||||
$logger->warning(<<<'JIT_WARNING'
|
$logger->warning(<<<'JIT_WARNING'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user