|
16 | 16 | *
|
17 | 17 | * ************** CAUTION **************
|
18 | 18 | *
|
19 |
| - * DO NOT EDIT THIS FILE as it will be overriden by Composer as part of |
| 19 | + * DO NOT EDIT THIS FILE as it will be overridden by Composer as part of |
20 | 20 | * the installation/update process. The original file resides in the
|
21 | 21 | * SensioDistributionBundle.
|
22 | 22 | *
|
@@ -307,7 +307,7 @@ public function getFailedRequirements()
|
307 | 307 | }
|
308 | 308 |
|
309 | 309 | /**
|
310 |
| - * Returns all optional recommmendations. |
| 310 | + * Returns all optional recommendations. |
311 | 311 | *
|
312 | 312 | * @return array Array of Requirement instances
|
313 | 313 | */
|
@@ -554,6 +554,20 @@ function_exists('simplexml_import_dom'),
|
554 | 554 | 'Your project might not work properly due to the PHP bug #61453 ("Cannot dump definitions which have method calls"). Install PHP 5.4.1 or newer.'
|
555 | 555 | );
|
556 | 556 |
|
| 557 | + $this->addRecommendation( |
| 558 | + version_compare($installedPhpVersion, '5.4.11', '>='), |
| 559 | + 'When using the logout handler from the Symfony Security Component, you should have at least PHP 5.4.11 due to PHP bug #63379 (as a workaround, you can also set invalidate_session to false in the security logout handler configuration)', |
| 560 | + 'Install PHP 5.4.11 or newer if your project uses the logout handler from the Symfony Security Component.' |
| 561 | + ); |
| 562 | + |
| 563 | + $this->addRecommendation( |
| 564 | + (version_compare($installedPhpVersion, '5.3.18', '>=') && version_compare($installedPhpVersion, '5.4.0', '<')) |
| 565 | + || |
| 566 | + version_compare($installedPhpVersion, '5.4.8', '>='), |
| 567 | + 'You should use PHP 5.3.18+ or PHP 5.4.8+ to always get nice error messages for fatal errors in the development environment due to PHP bug #61767/#60909', |
| 568 | + 'Install PHP 5.3.18+ or PHP 5.4.8+ if you want nice error messages for all fatal errors in the development environment.' |
| 569 | + ); |
| 570 | + |
557 | 571 | if (null !== $pcreVersion) {
|
558 | 572 | $this->addRecommendation(
|
559 | 573 | $pcreVersion >= 8.0,
|
@@ -630,11 +644,15 @@ class_exists('Locale'),
|
630 | 644 | }
|
631 | 645 |
|
632 | 646 | $accelerator =
|
633 |
| - (function_exists('apc_store') && ini_get('apc.enabled')) |
| 647 | + (extension_loaded('eaccelerator') && ini_get('eaccelerator.enable')) |
| 648 | + || |
| 649 | + (extension_loaded('apc') && ini_get('apc.enabled')) |
| 650 | + || |
| 651 | + (extension_loaded('Zend OPcache') && ini_get('opcache.enable')) |
634 | 652 | ||
|
635 |
| - function_exists('eaccelerator_put') && ini_get('eaccelerator.enable') |
| 653 | + (extension_loaded('xcache') && ini_get('xcache.cacher')) |
636 | 654 | ||
|
637 |
| - function_exists('xcache_set') |
| 655 | + (extension_loaded('wincache') && ini_get('wincache.ocenabled')) |
638 | 656 | ;
|
639 | 657 |
|
640 | 658 | $this->addRecommendation(
|
|
0 commit comments