From: Jeremy Benoist Date: Tue, 10 Jan 2017 16:35:17 +0000 (+0100) Subject: Update deps X-Git-Tag: 2.2.0~3^2~7 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=e4ccd3effe8a5561d71d6c5f7c4bd1b23aa5a45b;p=github%2Fwallabag%2Fwallabag.git Update deps --- 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 { $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;