You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'realpath_cache_size should be above 1024 in php.ini',
713
-
'Set "<strong>realpath_cache_size</strong>" to e.g. "<strong>1024</strong>" in php.ini<a href="#phpini">*</a> to improve performance on windows.'
725
+
$this->getRealpathCacheSize() >= 5 * 1024 * 1024,
726
+
'realpath_cache_size should be at least 5M in php.ini',
727
+
'Setting "<strong>realpath_cache_size</strong>" to e.g. "<strong>5242880</strong>" or "<strong>5M</strong>" in php.ini<a href="#phpini">*</a> may improve performance on Windows significantly in some cases.'
714
728
);
715
729
}
716
730
@@ -749,7 +763,11 @@ protected function getRealpathCacheSize()
749
763
{
750
764
$size = ini_get('realpath_cache_size');
751
765
$size = trim($size);
752
-
$unit = strtolower(substr($size, -1, 1));
766
+
$unit = '';
767
+
if (!ctype_digit($size)) {
768
+
$unit = strtolower(substr($size, -1, 1));
769
+
$size = (int) substr($size, 0, -1);
770
+
}
753
771
switch ($unit) {
754
772
case'g':
755
773
return$size * 1024 * 1024 * 1024;
@@ -761,4 +779,28 @@ protected function getRealpathCacheSize()
761
779
return (int) $size;
762
780
}
763
781
}
782
+
783
+
/**
784
+
* Defines PHP required version from Symfony version.
785
+
*
786
+
* @return string|false The PHP required version or false if it could not be guessed
787
+
*/
788
+
protectedfunctiongetPhpRequiredVersion()
789
+
{
790
+
if (!file_exists($path = __DIR__.'/../composer.lock')) {
0 commit comments