From e4ccd3effe8a5561d71d6c5f7c4bd1b23aa5a45b Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Tue, 10 Jan 2017 17:35:17 +0100 Subject: Update deps --- var/SymfonyRequirements.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3