Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit ba32df2

Browse files
committed
Merge branch '2.6' into 2.7
* 2.6: updated deps Conflicts: composer.lock
2 parents 8b25d1b + e722cac commit ba32df2

File tree

3 files changed

+45
-37
lines changed

3 files changed

+45
-37
lines changed

app/SymfonyRequirements.php

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -643,15 +643,15 @@ class_exists('Locale'),
643643
'Install and enable the <strong>intl</strong> extension (used for validators).'
644644
);
645645

646-
if (class_exists('Collator')) {
646+
if (extension_loaded('intl')) {
647+
// in some WAMP server installations, new Collator() returns null
647648
$this->addRecommendation(
648649
null !== new Collator('fr_FR'),
649650
'intl extension should be correctly configured',
650651
'The intl extension does not behave properly. This problem is typical on PHP 5.3.X x64 WIN builds.'
651652
);
652-
}
653653

654-
if (class_exists('Locale')) {
654+
// check for compatible ICU versions (only done when you have the intl extension)
655655
if (defined('INTL_ICU_VERSION')) {
656656
$version = INTL_ICU_VERSION;
657657
} else {
@@ -670,6 +670,14 @@ class_exists('Locale'),
670670
'intl ICU version should be at least 4+',
671671
'Upgrade your <strong>intl</strong> extension with a newer ICU version (4+).'
672672
);
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+
);
673681
}
674682

675683
$accelerator =

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"symfony/assetic-bundle": "~2.3",
1616
"symfony/swiftmailer-bundle": "~2.3",
1717
"symfony/monolog-bundle": "~2.4",
18-
"sensio/distribution-bundle": "~3.0,>=3.0.12",
18+
"sensio/distribution-bundle": "~4.0",
1919
"sensio/framework-extra-bundle": "~3.0,>=3.0.2",
2020
"incenteev/composer-parameter-handler": "~2.0"
2121
},

composer.lock

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

0 commit comments

Comments
 (0)