aboutsummaryrefslogtreecommitdiffhomepage
path: root/var/SymfonyRequirements.php
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2017-01-10 17:35:17 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2017-01-10 17:35:17 +0100
commite4ccd3effe8a5561d71d6c5f7c4bd1b23aa5a45b (patch)
tree09e0fa0734cebae6e96d51718702f774c42bda44 /var/SymfonyRequirements.php
parenta4180d0b8ef7af16e0b1a63cb45a8eeaa8b0dc52 (diff)
downloadwallabag-e4ccd3effe8a5561d71d6c5f7c4bd1b23aa5a45b.tar.gz
wallabag-e4ccd3effe8a5561d71d6c5f7c4bd1b23aa5a45b.tar.zst
wallabag-e4ccd3effe8a5561d71d6c5f7c4bd1b23aa5a45b.zip
Update deps
Diffstat (limited to 'var/SymfonyRequirements.php')
-rw-r--r--var/SymfonyRequirements.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/var/SymfonyRequirements.php b/var/SymfonyRequirements.php
index 7e7723af..7e7a99de 100644
--- a/var/SymfonyRequirements.php
+++ b/var/SymfonyRequirements.php
@@ -780,7 +780,11 @@ class SymfonyRequirements extends RequirementCollection
780 { 780 {
781 $size = ini_get('realpath_cache_size'); 781 $size = ini_get('realpath_cache_size');
782 $size = trim($size); 782 $size = trim($size);
783 $unit = strtolower(substr($size, -1, 1)); 783 $unit = '';
784 if (!ctype_digit($size)) {
785 $unit = strtolower(substr($size, -1, 1));
786 $size = (int) substr($size, 0, -1);
787 }
784 switch ($unit) { 788 switch ($unit) {
785 case 'g': 789 case 'g':
786 return $size * 1024 * 1024 * 1024; 790 return $size * 1024 * 1024 * 1024;