Skip to content

Commit 8c979d0

Browse files
author
Oliver Skroblin
committed
Merge pull request #2373 in SW/shopware from bugfix/master/sw-10898-fix-size-checks-installer to master
* commit '912a7f33d7ce4ae06d9c09ad7ec9774f62213799': SW-10898 - Fix checks for php formated sizes like 1G
2 parents f1bdbd7 + 912a7f3 commit 8c979d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

recovery/install/src/Requirements.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ protected function check($name)
106106
} elseif (function_exists($name)) {
107107
return true;
108108
} elseif (($value = ini_get($name)) !== null) {
109-
if (strtolower($value) == 'off' || $value == 0) {
109+
if (strtolower($value) == 'off' || (is_numeric($value) && $value == 0)) {
110110
return false;
111-
} elseif (strtolower($value) == 'on' || $value == 1) {
111+
} elseif (strtolower($value) == 'on' || (is_numeric($value) && $value == 1)) {
112112
return true;
113113
} else {
114114
return $value;

0 commit comments

Comments
 (0)