mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-17 17:08:37 +00:00
Update deps
This commit is contained in:
parent
a4180d0b8e
commit
e4ccd3effe
1 changed files with 5 additions and 1 deletions
|
@ -780,7 +780,11 @@ class SymfonyRequirements extends RequirementCollection
|
||||||
{
|
{
|
||||||
$size = ini_get('realpath_cache_size');
|
$size = ini_get('realpath_cache_size');
|
||||||
$size = trim($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) {
|
switch ($unit) {
|
||||||
case 'g':
|
case 'g':
|
||||||
return $size * 1024 * 1024 * 1024;
|
return $size * 1024 * 1024 * 1024;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue