]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Update deps
authorJeremy Benoist <jeremy.benoist@gmail.com>
Tue, 10 Jan 2017 16:35:17 +0000 (17:35 +0100)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Tue, 10 Jan 2017 16:35:17 +0000 (17:35 +0100)
var/SymfonyRequirements.php

index 7e7723af3180037f9311d0d99394c8f6751d5adf..7e7a99de92d58a6cca19a9884165d5bbb4073a37 100644 (file)
@@ -780,7 +780,11 @@ class SymfonyRequirements extends RequirementCollection
     {
         $size = ini_get('realpath_cache_size');
         $size = trim($size);
-        $unit = strtolower(substr($size, -1, 1));
+        $unit = '';
+        if (!ctype_digit($size)) {
+            $unit = strtolower(substr($size, -1, 1));
+            $size = (int) substr($size, 0, -1);
+        }
         switch ($unit) {
             case 'g':
                 return $size * 1024 * 1024 * 1024;