]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - var/SymfonyRequirements.php
Fix documentation wording for matches/notmatches tagging rules
[github/wallabag/wallabag.git] / var / SymfonyRequirements.php
index 7e7723af3180037f9311d0d99394c8f6751d5adf..3b14a4022d4324a35c42e6f9b8d91150053fedc2 100644 (file)
@@ -633,12 +633,6 @@ class SymfonyRequirements extends RequirementCollection
             'Install and enable the <strong>mbstring</strong> extension.'
         );
 
-        $this->addRecommendation(
-            function_exists('iconv'),
-            'iconv() should be available',
-            'Install and enable the <strong>iconv</strong> extension.'
-        );
-
         $this->addRecommendation(
             function_exists('utf8_decode'),
             'utf8_decode() should be available',
@@ -780,7 +774,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;