Skip to content

Commit c18a2f5

Browse files
committed
Fix loading PHP extensions twice by sensio/distribution-bundle
1 parent 4051e7f commit c18a2f5

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

composer.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

var/SymfonyRequirements.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,11 @@ protected function getRealpathCacheSize()
780780
{
781781
$size = ini_get('realpath_cache_size');
782782
$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+
}
784788
switch ($unit) {
785789
case 'g':
786790
return $size * 1024 * 1024 * 1024;

0 commit comments

Comments
 (0)