diff --git a/recovery/install/src/Requirements.php b/recovery/install/src/Requirements.php index b7169a3d544..5233d4124d5 100644 --- a/recovery/install/src/Requirements.php +++ b/recovery/install/src/Requirements.php @@ -106,9 +106,9 @@ protected function check($name) } elseif (function_exists($name)) { return true; } elseif (($value = ini_get($name)) !== null) { - if (strtolower($value) == 'off' || $value == 0) { + if (strtolower($value) == 'off' || (is_numeric($value) && $value == 0)) { return false; - } elseif (strtolower($value) == 'on' || $value == 1) { + } elseif (strtolower($value) == 'on' || (is_numeric($value) && $value == 1)) { return true; } else { return $value;