-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Issue #5288 fix #6109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue #5288 fix #6109
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,7 +89,16 @@ protected function isLowerThanIcuVersion($version) | |
|
||
protected function normalizeIcuVersion($version) | ||
{ | ||
return ((float) $version) * 100; | ||
$versionIds = explode(".", $version); | ||
|
||
$multi = 1000; | ||
$intVersion = 0; | ||
foreach ($versionIds as $id) { | ||
$intVersion += $id * $multi; | ||
$multi = $multi/10; | ||
} | ||
|
||
return (int) $intVersion; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did you change this method? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. After installing symfony during the hack day the test was failing on my machine and an other person on Ubuntu 12.10. So I guessed that it was fixed in a later version of the ICU. So I made the function more detailed so that also the number behind the second dot of the version is taken into account. It now is correct on my local machine but it fails on Travis. So I need to figure out where the change is in the ICU lib to find the correct version number to switch from BR to R. |
||
} | ||
|
||
protected function getIntlExtensionIcuVersion() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some spaces are missing. Can be fixed with php-cs-fixer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
already fixed