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
sprintf('Configured default timezone "%s" must be supported by your installation of PHP', @date_default_timezone_get()),
445
454
'Your default timezone is not supported by PHP. Check for typos in your <strong>php.ini</strong> file and have a look at the list of deprecated timezones at <a href="http://php.net/manual/en/timezones.others.php">http://php.net/manual/en/timezones.others.php</a>.'
sprintf('intl ICU version installed on your system is outdated (%s) and does not match the ICU data bundled with Symfony (%s)', \Symfony\Component\Intl\Intl::getIcuVersion(), \Symfony\Component\Intl\Intl::getIcuDataVersion()),
687
+
'To get the latest internationalization data upgrade the ICU system package and the intl PHP extension.'
688
+
);
689
+
if (\Symfony\Component\Intl\Intl::getIcuDataVersion() <= \Symfony\Component\Intl\Intl::getIcuVersion()) {
sprintf('intl ICU version installed on your system (%s) does not match the ICU data bundled with Symfony (%s)', \Symfony\Component\Intl\Intl::getIcuVersion(), \Symfony\Component\Intl\Intl::getIcuDataVersion()),
693
+
'To avoid internationalization data inconsistencies upgrade the symfony/intl component.'
'Install and/or enable a <strong>PHP accelerator</strong> (highly recommended).'
707
725
);
708
726
709
-
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
727
+
if ('WIN' === strtoupper(substr(PHP_OS, 0, 3))) {
710
728
$this->addRecommendation(
711
-
$this->getRealpathCacheSize() >1000,
712
-
'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.'
729
+
$this->getRealpathCacheSize() >= 5 * 1024 * 1024,
730
+
'realpath_cache_size should be at least 5M in php.ini',
731
+
'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
732
);
715
733
}
716
734
@@ -749,7 +767,11 @@ protected function getRealpathCacheSize()
749
767
{
750
768
$size = ini_get('realpath_cache_size');
751
769
$size = trim($size);
752
-
$unit = strtolower(substr($size, -1, 1));
770
+
$unit = '';
771
+
if (!ctype_digit($size)) {
772
+
$unit = strtolower(substr($size, -1, 1));
773
+
$size = (int) substr($size, 0, -1);
774
+
}
753
775
switch ($unit) {
754
776
case'g':
755
777
return$size * 1024 * 1024 * 1024;
@@ -761,4 +783,28 @@ protected function getRealpathCacheSize()
761
783
return (int) $size;
762
784
}
763
785
}
786
+
787
+
/**
788
+
* Defines PHP required version from Symfony version.
789
+
*
790
+
* @return string|false The PHP required version or false if it could not be guessed
791
+
*/
792
+
protectedfunctiongetPhpRequiredVersion()
793
+
{
794
+
if (!file_exists($path = __DIR__.'/../composer.lock')) {
0 commit comments