-
-
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
Conversation
$multi = $multi/10; | ||
} | ||
|
||
return (int) $intVersion; |
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.
Why did you change this method?
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.
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.
This PR was merged into the master branch. Commits ------- 12a890f Issue 5288 fix Discussion ---------- Issue #5288 fix I only have the test failing on php -v 5.4.6-1ubuntu1 ICU version 4.8.1.1 Test results 1) Symfony\Component\Locale\Tests\Stub\StubLocaleTest::testGetCurrenciesData Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ -'BR$' +'R$' It looks like the check $this->isSameAsIcuVersion('4.8') on line is to strict. It was added here 90d6dc37 but I don't how to test the fix on icu version 4.8.0.x Bug fix: yes Feature addition: no Backwards compatibility break: no Symfony2 tests pass: yes Fixes the following tickets: #5288 Todo: Check older version of the ICU lib are still working. Because I could not test that.
$multi = 1000; | ||
$intVersion = 0; | ||
foreach ($versionIds as $id) { | ||
$intVersion += $id * $multi; |
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
This PR was merged into the master branch. Commits ------- 97bc257 [Locale] Rolled back normalizeIcuVersion() method in unit tests. Discussion ---------- [Locale] Rolled back normalizeIcuVersion() method in unit tests. We just need to check if version is 4.4 or 4.8 and we do not need to know if it is 4.8.0 or 4.8.1.1 (at least for now there are no big differences between minor ICU versions). This change basically rolls back modifications made in #6109 to fix #5288. Those modifications didn't really fix the issue since ICU>=4.9 wasn't handled properly. Part of the roll back was made in #6515 (2.1 branch). This change makes master branch consistent with what we have in 2.0 and 2.1 (bespoke tests are passing in those branches). Bug fix: no Feature addition: no Backwards compatibility break: no Symfony2 tests pass: one test fails in the Propel1 bridge Fixes the following tickets: #5517 Todo: - License of the code: MIT Documentation PR: -
I only have the test failing on
php -v
5.4.6-1ubuntu1
ICU version 4.8.1.1
Test results
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'BR$'
+'R$'
It looks like the check $this->isSameAsIcuVersion('4.8') on line is to strict.
It was added here 90d6dc37 but I don't how to test the fix on icu version 4.8.0.x
Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: #5288
Todo: Check older version of the ICU lib are still working. Because I could not test that.