aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/SymfonyRequirements.php
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2015-06-01 17:39:05 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2015-06-01 17:39:05 +0200
commit51d9699fa130a18a1c5cd09d1b03a382d73e91db (patch)
tree5cff73a91e8ae98787b35f18e8c9629e5360adcd /app/SymfonyRequirements.php
parent2878416f8b4d94fb5e64c2fa61861526a7654d3d (diff)
downloadwallabag-51d9699fa130a18a1c5cd09d1b03a382d73e91db.tar.gz
wallabag-51d9699fa130a18a1c5cd09d1b03a382d73e91db.tar.zst
wallabag-51d9699fa130a18a1c5cd09d1b03a382d73e91db.zip
Update deps
Diffstat (limited to 'app/SymfonyRequirements.php')
-rw-r--r--app/SymfonyRequirements.php14
1 files changed, 11 insertions, 3 deletions
diff --git a/app/SymfonyRequirements.php b/app/SymfonyRequirements.php
index caabe407..b9d62f72 100644
--- a/app/SymfonyRequirements.php
+++ b/app/SymfonyRequirements.php
@@ -643,15 +643,15 @@ class SymfonyRequirements extends RequirementCollection
643 'Install and enable the <strong>intl</strong> extension (used for validators).' 643 'Install and enable the <strong>intl</strong> extension (used for validators).'
644 ); 644 );
645 645
646 if (class_exists('Collator')) { 646 if (extension_loaded('intl')) {
647 // in some WAMP server installations, new Collator() returns null
647 $this->addRecommendation( 648 $this->addRecommendation(
648 null !== new Collator('fr_FR'), 649 null !== new Collator('fr_FR'),
649 'intl extension should be correctly configured', 650 'intl extension should be correctly configured',
650 'The intl extension does not behave properly. This problem is typical on PHP 5.3.X x64 WIN builds.' 651 'The intl extension does not behave properly. This problem is typical on PHP 5.3.X x64 WIN builds.'
651 ); 652 );
652 }
653 653
654 if (class_exists('Locale')) { 654 // check for compatible ICU versions (only done when you have the intl extension)
655 if (defined('INTL_ICU_VERSION')) { 655 if (defined('INTL_ICU_VERSION')) {
656 $version = INTL_ICU_VERSION; 656 $version = INTL_ICU_VERSION;
657 } else { 657 } else {
@@ -670,6 +670,14 @@ class SymfonyRequirements extends RequirementCollection
670 'intl ICU version should be at least 4+', 670 'intl ICU version should be at least 4+',
671 'Upgrade your <strong>intl</strong> extension with a newer ICU version (4+).' 671 'Upgrade your <strong>intl</strong> extension with a newer ICU version (4+).'
672 ); 672 );
673
674 $this->addPhpIniRecommendation(
675 'intl.error_level',
676 create_function('$cfgValue', 'return (int) $cfgValue === 0;'),
677 true,
678 'intl.error_level should be 0 in php.ini',
679 'Set "<strong>intl.error_level</strong>" to "<strong>0</strong>" in php.ini<a href="#phpini">*</a> to inhibit the messages when an error occurs in ICU functions.'
680 );
673 } 681 }
674 682
675 $accelerator = 683 $accelerator =