Skip to content

Error in locale system w/ LocaleType and CountryType #5279

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

Closed
jmather opened this issue Aug 16, 2012 · 67 comments
Closed

Error in locale system w/ LocaleType and CountryType #5279

jmather opened this issue Aug 16, 2012 · 67 comments
Labels

Comments

@jmather
Copy link

jmather commented Aug 16, 2012

I have been receiving:

The locale resource bundle could not be loaded for locale "en"

when trying to include a Locale type field in a form.

I have also seen a report of someone having the same issue with CountryType:

The country resource bundle could not be loaded for locale "en"

Anything we should check?

@bartru
Copy link

bartru commented Aug 16, 2012

I have the same problem with the CountryType. Same thing happens for the "nl" locale.

The country resource bundle could not be loaded for locale "en"
The country resource bundle could not be loaded for locale "nl"

@fabpot
Copy link
Member

fabpot commented Aug 16, 2012

Do you have the intl extension installed?

@jmather
Copy link
Author

jmather commented Aug 16, 2012

I do, yes. PHP 5.3.15,

intl

Internationalization support => enabled
version => 1.1.0
ICU version => 4.2.1

Directive => Local Value => Master Value
intl.default_locale => no value => no value
intl.error_level => 0 => 0

@bartru
Copy link

bartru commented Aug 16, 2012

The config.php file doesn't report I should install it, so it should be.

@sstok
Copy link
Contributor

sstok commented Aug 19, 2012

Try using nl_NL and en_US.

@jmather
Copy link
Author

jmather commented Aug 19, 2012

The locale resource bundle could not be loaded for locale "en_US"

No dice. Any other ideas?

@sstok
Copy link
Contributor

sstok commented Aug 20, 2012

https://github.com/symfony/Locale/tree/master/Resources/data

Version 42 is not present, I don't know if this is a problem.

Try running php build-data.php 42 in the Locale / Resources / data directory to build the data for your version.

@jmather
Copy link
Author

jmather commented Aug 20, 2012

Installed libicu-devel to get icu-config.

Then:

-bash-4.1$ php build-data.php 42
The version 42 is not available in the datasource.ini file.

; ICU data source URLs
; We use always the latest release of a major version.
4.0 = http://source.icu-project.org/repos/icu/icu/tags/release-4-0-1/source/data
4.2 = http://source.icu-project.org/repos/icu/icu/tags/release-4-2-1/source/data
4.4 = http://source.icu-project.org/repos/icu/icu/tags/release-4-4-2/source/data
4.6 = http://source.icu-project.org/repos/icu/icu/tags/release-4-6-1/source/data
4.8 = http://source.icu-project.org/repos/icu/icu/tags/release-4-8-1-1/source/data
49 = http://source.icu-project.org/repos/icu/icu/tags/release-49-1-2/source/data

On a hunch:

-bash-4.1$ php build-data.php 49
PHP Warning: rmdir(/vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/49/curr): Directory not empty in /vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/build-data.php on line 628
PHP Stack trace:
PHP 1. {main}() /vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/build-data.php:0
PHP 2. rmdir() /vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/build-data.php:628

Which DID fix the issue.

Not sure if it was installing icu, icu-devel or doing the rebuild, but it seems to be working now. Any guesses?

@jmather
Copy link
Author

jmather commented Aug 20, 2012

Additional testing, rebuilding 49 resolved it. (I reset the repo).

I hope this helps figure out what's going on?

@MDrollette
Copy link
Contributor

I'm getting the same error but the above steps didn't resolve it.

@laurentlaporte
Copy link

I have the same problem, and the above steps didn't worked.

@fabpot
Copy link
Member

fabpot commented Aug 22, 2012

ping @eriksencosta

@ghost
Copy link

ghost commented Aug 22, 2012

@jmather please, try:

php build-data.php 4.2

Then run the tests.

@gertvr
Copy link

gertvr commented Aug 24, 2012

Running

php build-data.php 49

Fixed the issue for us.

@jmather
Copy link
Author

jmather commented Aug 24, 2012

@eriksencosta Sorry for the delay.

Just to try everything possible, I ran it on both 4.2 (first) and 49 (second).

Here are my results:

-bash-4.1$ php build-data.php 4.2
PHP Warning: rmdir(/vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/4.2/curr): Directory not empty in /vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/build-data.php on line 628
PHP Stack trace:
PHP 1. {main}() /vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/build-data.php:0
PHP 2. rmdir() /vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/build-data.php:628

-bash-4.1$ phpunit
PHPUnit 3.6.10 by Sebastian Bergmann.

Configuration read from /vendor/symfony/symfony/src/Symfony/Component/Locale/phpunit.xml.dist

EEE............................................................ 63 / 935 ( 6%)
............................................................... 126 / 935 ( 13%)
............................................................... 189 / 935 ( 20%)
............................................................... 252 / 935 ( 26%)
............................................................... 315 / 935 ( 33%)
...............F............................................... 378 / 935 ( 40%)
............................................................... 441 / 935 ( 47%)
............................................................... 504 / 935 ( 53%)
............................................................... 567 / 935 ( 60%)
............................................................... 630 / 935 ( 67%)
............................................................... 693 / 935 ( 74%)
..........................................................FFF.. 756 / 935 ( 80%)
.....................FFFFFFFFFFFFF............................. 819 / 935 ( 87%)
............................................................... 882 / 935 ( 94%)
.............................S.S.S.S.................

Time: 0 seconds, Memory: 11.25Mb

There were 3 errors:

  1. Symfony\Component\Locale\Tests\LocaleTest::testGetDisplayCountriesReturnsFullListForSubLocale
    RuntimeException: The country resource bundle could not be loaded for locale "de"

/vendor/symfony/symfony/src/Symfony/Component/Locale/Locale.php:54
/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/LocaleTest.php:22

  1. Symfony\Component\Locale\Tests\LocaleTest::testGetDisplayLanguagesReturnsFullListForSubLocale
    RuntimeException: The language resource bundle could not be loaded for locale "de"

/vendor/symfony/symfony/src/Symfony/Component/Locale/Locale.php:109
/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/LocaleTest.php:33

  1. Symfony\Component\Locale\Tests\LocaleTest::testGetDisplayLocalesReturnsFullListForSubLocale
    RuntimeException: The locale resource bundle could not be loaded for locale "de"

/vendor/symfony/symfony/src/Symfony/Component/Locale/Locale.php:160
/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/LocaleTest.php:44

There were 17 failures:

  1. Symfony\Component\Locale\Tests\Stub\StubIntlDateFormatterTest::testFormatWithDefaultTimezoneIntl
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'1970-01-01 00:00:00'
    +'1969-12-31 19:00:00'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubIntlDateFormatterTest.php:481

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleCostaRicanColonsRoundingStub with data set #0 (100, 'CRC', '₡', '%s100')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'₡100'
    +'CRC100'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:164

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleCostaRicanColonsRoundingStub with data set Untitled #1 (-100, 'CRC', '₡', '(%s100)')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'(₡100)'
    +'(CRC100)'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:164

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleCostaRicanColonsRoundingStub with data set Renaming "Entities" to "Entity" #2 (1000.12, 'CRC', '₡', '%s1,000')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'₡1,000'
    +'CRC1,000'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:164

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set #0 (100, 'CHF', 'Fr.', '%s100.00')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'Fr.100.00'
    +'CHF100.00'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:235

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set Untitled #1 (-100, 'CHF', 'Fr.', '(%s100.00)')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'(Fr.100.00)'
    +'(CHF100.00)'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:235

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set Renaming "Entities" to "Entity" #2 (1000.12, 'CHF', 'Fr.', '%s1,000.10')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'Fr.1,000.10'
    +'CHF1,000.10'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:235

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set Untitled #3 ('1000.12', 'CHF', 'Fr.', '%s1,000.10')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'Fr.1,000.10'
    +'CHF1,000.10'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:235

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set Same change for mapping files #4 (1000.121, 'CHF', 'Fr.', '%s1,000.10')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'Fr.1,000.10'
    +'CHF1,000.10'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:235

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set Using ORM and MongoDB both in the same bundle. #5 (1000.123, 'CHF', 'Fr.', '%s1,000.10')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'Fr.1,000.10'
    +'CHF1,000.10'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:235

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set [Form] Outstanding patches for Choice/Collection fields #6 (1000.125, 'CHF', 'Fr.', '%s1,000.10')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'Fr.1,000.10'
    +'CHF1,000.10'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:235

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set Fix form file field enctype #7 (1000.127, 'CHF', 'Fr.', '%s1,000.15')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'Fr.1,000.15'
    +'CHF1,000.15'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:235

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set Fix invalid help command shortcut (ticket #8890) #8 (1000.129, 'CHF', 'Fr.', '%s1,000.15')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'Fr.1,000.15'
    +'CHF1,000.15'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:235

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set Hidden field labels are displayed #9 (1200000, 'CHF', 'Fr.', '%s1,200,000.00')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'Fr.1,200,000.00'
    +'CHF1,200,000.00'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:235

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set "Permission denied" bug on Windows #10 (1200000.1, 'CHF', 'Fr.', '%s1,200,000.10')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'Fr.1,200,000.10'
    +'CHF1,200,000.10'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:235

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set Fixes html validity for web profilers #11 (1200000.1, 'CHF', 'Fr.', '%s1,200,000.10')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'Fr.1,200,000.10'
    +'CHF1,200,000.10'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:235

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set Fixes typo in WebTestCase #12 (1200000.101, 'CHF', 'Fr.', '%s1,200,000.10')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'Fr.1,200,000.10'
    +'CHF1,200,000.10'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:235

FAILURES!
Tests: 935, Assertions: 3172, Failures: 17, Errors: 3, Skipped: 4.

-bash-4.1$ php build-data.php 49
PHP Warning: rmdir(/vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/49/curr): Directory not empty in /vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/build-data.php on line 628
PHP Stack trace:
PHP 1. {main}() /vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/build-data.php:0
PHP 2. rmdir() /vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/build-data.php:628

-bash-4.1$ phpunit
PHPUnit 3.6.10 by Sebastian Bergmann.

Configuration read from /vendor/symfony/symfony/src/Symfony/Component/Locale/phpunit.xml.dist

............................................................... 63 / 935 ( 6%)
............................................................... 126 / 935 ( 13%)
............................................................... 189 / 935 ( 20%)
............................................................... 252 / 935 ( 26%)
............................................................... 315 / 935 ( 33%)
...............F............................................... 378 / 935 ( 40%)
............................................................... 441 / 935 ( 47%)
............................................................... 504 / 935 ( 53%)
............................................................... 567 / 935 ( 60%)
............................................................... 630 / 935 ( 67%)
............................................................... 693 / 935 ( 74%)
..........................................................FFF.. 756 / 935 ( 80%)
.....................FFFFFFFFFFFFF............................. 819 / 935 ( 87%)
............................................................... 882 / 935 ( 94%)
.............................S.S.S.S.................

Time: 1 second, Memory: 11.75Mb

There were 17 failures:

  1. Symfony\Component\Locale\Tests\Stub\StubIntlDateFormatterTest::testFormatWithDefaultTimezoneIntl
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'1970-01-01 00:00:00'
    +'1969-12-31 19:00:00'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubIntlDateFormatterTest.php:481

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleCostaRicanColonsRoundingStub with data set #0 (100, 'CRC', '₡', '%s100')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'₡100'
    +'CRC100'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:164

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleCostaRicanColonsRoundingStub with data set Untitled #1 (-100, 'CRC', '₡', '(%s100)')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'(₡100)'
    +'(CRC100)'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:164

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleCostaRicanColonsRoundingStub with data set Renaming "Entities" to "Entity" #2 (1000.12, 'CRC', '₡', '%s1,000')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'₡1,000'
    +'CRC1,000'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:164

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set #0 (100, 'CHF', 'Fr.', '%s100.00')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'Fr.100.00'
    +'CHF100.00'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:235

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set Untitled #1 (-100, 'CHF', 'Fr.', '(%s100.00)')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'(Fr.100.00)'
    +'(CHF100.00)'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:235

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set Renaming "Entities" to "Entity" #2 (1000.12, 'CHF', 'Fr.', '%s1,000.10')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'Fr.1,000.10'
    +'CHF1,000.10'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:235

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set Untitled #3 ('1000.12', 'CHF', 'Fr.', '%s1,000.10')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'Fr.1,000.10'
    +'CHF1,000.10'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:235

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set Same change for mapping files #4 (1000.121, 'CHF', 'Fr.', '%s1,000.10')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'Fr.1,000.10'
    +'CHF1,000.10'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:235

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set Using ORM and MongoDB both in the same bundle. #5 (1000.123, 'CHF', 'Fr.', '%s1,000.10')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'Fr.1,000.10'
    +'CHF1,000.10'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:235

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set [Form] Outstanding patches for Choice/Collection fields #6 (1000.125, 'CHF', 'Fr.', '%s1,000.10')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'Fr.1,000.10'
    +'CHF1,000.10'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:235

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set Fix form file field enctype #7 (1000.127, 'CHF', 'Fr.', '%s1,000.15')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'Fr.1,000.15'
    +'CHF1,000.15'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:235

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set Fix invalid help command shortcut (ticket #8890) #8 (1000.129, 'CHF', 'Fr.', '%s1,000.15')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'Fr.1,000.15'
    +'CHF1,000.15'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:235

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set Hidden field labels are displayed #9 (1200000, 'CHF', 'Fr.', '%s1,200,000.00')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'Fr.1,200,000.00'
    +'CHF1,200,000.00'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:235

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set "Permission denied" bug on Windows #10 (1200000.1, 'CHF', 'Fr.', '%s1,200,000.10')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'Fr.1,200,000.10'
    +'CHF1,200,000.10'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:235

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set Fixes html validity for web profilers #11 (1200000.1, 'CHF', 'Fr.', '%s1,200,000.10')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'Fr.1,200,000.10'
    +'CHF1,200,000.10'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:235

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set Fixes typo in WebTestCase #12 (1200000.101, 'CHF', 'Fr.', '%s1,200,000.10')
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'Fr.1,200,000.10'
    +'CHF1,200,000.10'

/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:235

FAILURES!
Tests: 935, Assertions: 3181, Failures: 17, Skipped: 4.

@jmather
Copy link
Author

jmather commented Aug 27, 2012

Just a reference point, this is also happening out of the box for my Pagoda setup as well, so I've verified it across a few implementations.

Unfortunately, with Pagoda, rebuilding distributed lib files isn't really an option.

@ghost
Copy link

ghost commented Aug 28, 2012

@jmather Sorry man, I forgot (as in the README file):

php src/Symfony/Component/Locale/Resources/data/build-data.php 4.2
export USE_INTL_ICU_DATA_VERSION=true
phpunit src/Symfony/Component/Locale/Tests

The USE_INTL_ICU_DATA_VERSION will instruct the component to use the built data that have the same version of the installed intl ICU version.

@jmather
Copy link
Author

jmather commented Aug 28, 2012

-bash-4.1$ phpunit -c app/ vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/
PHPUnit 3.6.10 by Sebastian Bergmann.

Configuration read from ___DIR___/app/phpunit.xml.dist

...............................................................  63 / 935 (  6%)
............................................................... 126 / 935 ( 13%)
............................................................... 189 / 935 ( 20%)
............................................................... 252 / 935 ( 26%)
............................................................... 315 / 935 ( 33%)
...............F............................................... 378 / 935 ( 40%)
............................................................... 441 / 935 ( 47%)
............................................................... 504 / 935 ( 53%)
............................................................... 567 / 935 ( 60%)
............................................................... 630 / 935 ( 67%)
............................................................... 693 / 935 ( 74%)
............................................................... 756 / 935 ( 80%)
............................................................... 819 / 935 ( 87%)
............................................................... 882 / 935 ( 94%)
.............................S.S.S.S.................

Time: 1 second, Memory: 11.50Mb

There was 1 failure:

1) Symfony\Component\Locale\Tests\Stub\StubIntlDateFormatterTest::testFormatWithDefaultTimezoneIntl
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'1970-01-01 00:00:00'
+'1969-12-31 19:00:00'

___DIR___/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubIntlDateFormatterTest.php:481

FAILURES!
Tests: 935, Assertions: 3181, Failures: 1, Skipped: 4.

@ghost
Copy link

ghost commented Aug 28, 2012

Thank you man! Now it's time to fix this timezone issue!

@ghost
Copy link

ghost commented Aug 28, 2012

@fabpot This issue can be closed.

@jmather
Copy link
Author

jmather commented Aug 28, 2012

Glad I could help!

@ghost
Copy link

ghost commented Aug 28, 2012

@jmather Can you please paste here the output of the icuinfo command?

$ which icuinfo
$ /usr/bin/icuinfo

@jmather
Copy link
Author

jmather commented Aug 28, 2012

It doesn't look like I have access to it. CentOS 6.3, icu-4.2.1-9.1.el6_2.i686

@pborreli
Copy link
Contributor

had the same issue, when i try with export USE_INTL_ICU_DATA_VERSION=true i have :

+ php src/Symfony/Component/Locale/Resources/data/build-data.php 4.2
which: no icu-config in (/usr/local/rvm/gems/ruby-1.8.7-p302/bin:/usr/local/rvm/gems/ruby-1.8.7-p302@global/bin:/usr/local/rvm/rubies/ruby-1.8.7-p302/bin:/usr/local/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/opt/maven/latest/bin:/opt/ant/latest/bin:/opt/android/android-sdk-linux/tools:/opt/gradle/latest/bin)
The command "icu-config" is not installed

@ghost
Copy link

ghost commented Aug 28, 2012

@pborreli You need PHP with the intl extension enabled and the ICU tools installed in your environment to build the ICU data. Please, read the UPDATE.txt for more info.

@ghost
Copy link

ghost commented Aug 28, 2012

@jmather Ok man, thanks!

@pborreli
Copy link
Contributor

@eriksencosta need it for https://symfony.ci.cloudbees.com/job/Symfony2/job/Symfony2-master/42/console gonna ask them if they can install it, thanks.

@fabpot fabpot closed this as completed Aug 28, 2012
@jmather
Copy link
Author

jmather commented Sep 5, 2012

I'm still seeing this issue with the latest update. Is there anything more I can do to help confirm/test?

@jmather
Copy link
Author

jmather commented Sep 10, 2012

As an update to anyone following this:

Add the following to your /etc/init.d/httpd file:

USE_INTL_ICU_DATA_VERSION=true
export USE_INTL_ICU_DATA_VERSION

I'm not sure why this needs to be done to tell the Locale extension to use the version of ICU available to it, it seems a little .. strange. I've put a feeler out in #symfony-dev and will prepare a PR if I don't hear from someone soon.

@Raulken
Copy link

Raulken commented Jan 2, 2013

sorry guys , im newbie...
but this command: php build-data.php 49
i have to put offline, because i have shared hosting, and after i need to reupload all site?

excuse me but I am very confused

@Raulken
Copy link

Raulken commented Jan 2, 2013

/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:156
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:677
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:299
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:165

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleCostaRicanColonsRoundingStub with data set Renaming "Entities" to "Entity" #2 (1000.12, 'CRC', 'CRC', '%s1,000')
    include(/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/4.8/stub/curr/en.php): failed to open stream: No such file or directory

/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:156
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:677
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:299
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:165

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleBrazilianRealRoundingStub with data set #0 (100, 'BRL', 'BR', '%s$100.00')
    include(/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/4.8/stub/curr/en.php): failed to open stream: No such file or directory

/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:156
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:677
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:299
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:197

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleBrazilianRealRoundingStub with data set Untitled #1 (-100, 'BRL', 'BR', '(%s$100.00)')
    include(/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/4.8/stub/curr/en.php): failed to open stream: No such file or directory

/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:156
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:677
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:299
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:197

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleBrazilianRealRoundingStub with data set Renaming "Entities" to "Entity" #2 (1000.12, 'BRL', 'BR', '%s$1,000.12')
    include(/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/4.8/stub/curr/en.php): failed to open stream: No such file or directory

/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:156
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:677
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:299
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:197

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleBrazilianRealRoundingStub with data set Untitled #3 (1000.121, 'BRL', 'BR', '%s$1,000.12')
    include(/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/4.8/stub/curr/en.php): failed to open stream: No such file or directory

/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:156
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:677
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:299
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:197

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleBrazilianRealRoundingStub with data set Same change for mapping files #4 (1000.123, 'BRL', 'BR', '%s$1,000.12')
    include(/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/4.8/stub/curr/en.php): failed to open stream: No such file or directory

/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:156
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:677
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:299
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:197

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleBrazilianRealRoundingStub with data set Using ORM and MongoDB both in the same bundle. #5 (1000.125, 'BRL', 'BR', '%s$1,000.12')
    include(/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/4.8/stub/curr/en.php): failed to open stream: No such file or directory

/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:156
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:677
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:299
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:197

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleBrazilianRealRoundingStub with data set [Form] Outstanding patches for Choice/Collection fields #6 (1000.127, 'BRL', 'BR', '%s$1,000.13')
    include(/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/4.8/stub/curr/en.php): failed to open stream: No such file or directory

/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:156
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:677
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:299
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:197

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleBrazilianRealRoundingStub with data set Fix form file field enctype #7 (1000.129, 'BRL', 'BR', '%s$1,000.13')
    include(/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/4.8/stub/curr/en.php): failed to open stream: No such file or directory

/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:156
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:677
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:299
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:197

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleBrazilianRealRoundingStub with data set Fix invalid help command shortcut (ticket #8890) #8 (11.50999, 'BRL', 'BR', '%s$11.51')
    include(/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/4.8/stub/curr/en.php): failed to open stream: No such file or directory

/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:156
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:677
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:299
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:197

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleBrazilianRealRoundingStub with data set Hidden field labels are displayed #9 (11.9999464, 'BRL', 'BR', '%s$12.00')
    include(/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/4.8/stub/curr/en.php): failed to open stream: No such file or directory

/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:156
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:677
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:299
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:197

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set #0 (100, 'CHF', 'CHF', '%s100.00')
    include(/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/4.8/stub/curr/en.php): failed to open stream: No such file or directory

/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:156
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:677
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:299
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:238

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set Untitled #1 (-100, 'CHF', 'CHF', '(%s100.00)')
    include(/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/4.8/stub/curr/en.php): failed to open stream: No such file or directory

/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:156
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:677
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:299
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:238

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set Renaming "Entities" to "Entity" #2 (1000.12, 'CHF', 'CHF', '%s1,000.10')
    include(/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/4.8/stub/curr/en.php): failed to open stream: No such file or directory

/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:156
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:677
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:299
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:238

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set Untitled #3 ('1000.12', 'CHF', 'CHF', '%s1,000.10')
    include(/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/4.8/stub/curr/en.php): failed to open stream: No such file or directory

/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:156
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:677
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:299
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:238

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set Same change for mapping files #4 (1000.121, 'CHF', 'CHF', '%s1,000.10')
    include(/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/4.8/stub/curr/en.php): failed to open stream: No such file or directory

/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:156
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:677
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:299
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:238

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set Using ORM and MongoDB both in the same bundle. #5 (1000.123, 'CHF', 'CHF', '%s1,000.10')
    include(/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/4.8/stub/curr/en.php): failed to open stream: No such file or directory

/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:156
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:677
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:299
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:238

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set [Form] Outstanding patches for Choice/Collection fields #6 (1000.125, 'CHF', 'CHF', '%s1,000.10')
    include(/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/4.8/stub/curr/en.php): failed to open stream: No such file or directory

/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:156
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:677
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:299
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:238

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set Fix form file field enctype #7 (1000.127, 'CHF', 'CHF', '%s1,000.15')
    include(/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/4.8/stub/curr/en.php): failed to open stream: No such file or directory

/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:156
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:677
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:299
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:238

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set Fix invalid help command shortcut (ticket #8890) #8 (1000.129, 'CHF', 'CHF', '%s1,000.15')
    include(/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/4.8/stub/curr/en.php): failed to open stream: No such file or directory

/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:156
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:677
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:299
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:238

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set Hidden field labels are displayed #9 (1200000, 'CHF', 'CHF', '%s1,200,000.00')
    include(/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/4.8/stub/curr/en.php): failed to open stream: No such file or directory

/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:156
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:677
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:299
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:238

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set "Permission denied" bug on Windows #10 (1200000.1, 'CHF', 'CHF', '%s1,200,000.10')
    include(/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/4.8/stub/curr/en.php): failed to open stream: No such file or directory

/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:156
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:677
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:299
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:238

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set Fixes html validity for web profilers #11 (1200000.1, 'CHF', 'CHF', '%s1,200,000.10')
    include(/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/4.8/stub/curr/en.php): failed to open stream: No such file or directory

/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:156
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:677
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:299
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:238

  1. Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest::testFormatCurrencyWithCurrencyStyleSwissRoundingStub with data set Fixes typo in WebTestCase #12 (1200000.101, 'CHF', 'CHF', '%s1,200,000.10')
    include(/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/4.8/stub/curr/en.php): failed to open stream: No such file or directory

/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:508
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubLocale.php:156
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:677
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php:299
/home/ubuntu/NetBeansProjects/infrattoniNew/vendor/symfony/symfony/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php:238

FAILURES!
Tests: 965, Assertions: 3271, Errors: 47, Skipped: 4.

@jmather
Copy link
Author

jmather commented Jan 3, 2013

I would like to thank you, @weaverryan, for trying to eloquently say what I think I have been intending to say all along.

That this doesn't work, out of the box, on any system other than a 'version 49 whatever' is a bug. Plain and simple.

I don't really care if we need to detect a system library difference and make a script run to compile the correct pieces, or what, but something needs to get changed, because the solution being 'defining an environmental variable and manually recompiling the data set because you found this issue while searching for the error' is an awful solution.

We must strive to be more user-friendly, or people will simply omit the features that rely on these bindings, which negates a lot of work people have done in getting this stuff working.

@kbsali
Copy link
Contributor

kbsali commented Jan 16, 2013

WTF

php vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/build-data.php
which: no svn in (/sbin:/bin:/usr/sbin:/usr/bin)
The command "svn" is not installed

I don't want to install svn! :|

@mvrhov
Copy link

mvrhov commented Jan 16, 2013

Well you need it if you want to build that data...

@kbsali
Copy link
Contributor

kbsali commented Jan 16, 2013

For those who need those data (and don't want to build them), here is a repository containing v4.2 of the processed ICU files : https://github.com/kbsali/sf2-icu
I was unable to find ICU 49 for CentOS...

@vwasteels
Copy link

Hello !!

Is there any development planned on SF side to avoid this error ?
I'm not sys-admin so this is getting far too complicate for me ;)
For the moment I'm not able to deliver the project I'm working on ...

Thanks

@kbsali
Copy link
Contributor

kbsali commented Jan 19, 2013

@vwasteels have you checked https://github.com/kbsali/sf2-icu ?

@ptbello
Copy link

ptbello commented Jan 20, 2013

Totally agree with @jmather. Thing is, this issue is marked as closed, so presumably it isn't getting much attention.

@skonsoft
Copy link

Hi,
after updating my application (already in sf 2.1), i got this famous error...
I can not apply suggested solutions because i'm in share hosting and i have not ssh acces.

Are there any one who had a solution for this issue ?

thanx

@skonsoft
Copy link

Ok, finally it works after following instrunctions in https://github.com/kbsali/sf2-icu

Just, you should edit /vendor/symfony/symfony/src/Symfony/Component/Locale/Locale.php and change the const version to 4.2

instead of:
const ICU_DATA_VERSION = '49';
you put:
const ICU_DATA_VERSION = '4.2';

It's a bad solution, because, i edited symfony source file ! i think that, Sensio should give us a solution for this problem. For example, the default version should be 49, but if exceptions occurs, the method should try to get the 4.2 version, if exception persists, we launch it.

I hope this help you. Waiting for fixing this issue, be careful, when updating you application using composer.

@sstok
Copy link
Contributor

sstok commented Jan 21, 2013

Use this to inform the Locale component.

export export USE_INTL_ICU_DATA_VERSION=true

Then define the following constant in php.

if (!defined('INTL_ICU_DATA_VERSION')) {
    define('INTL_ICU_DATA_VERSION', '4.2');
}

@padminibeera
Copy link

Hi,
I am newbie to symfony..i installed sonataAdminbundle after a lot of struggle in CentOS..now i am unable to add user into the list.I Got The locale resource bundle could not be loaded for locale "en" error,I followed the steps but it dint help me.When i run php build-data.php 49,my console is just stuck no reponse from it
My Symfony version is 2.1.4
intl Version is 1.1.0
ICU Version is 3.6
Please give me steps to work on it...

@fungus75
Copy link

i had to adjust
const ICU_DATA_VERSION = '4.2';
within
vendor/symfony/symfony/src/Symfony/Component/Locale/Locale.php

(Using centos and icu 4.2.1 installed).

@lsmith77
Copy link
Contributor

lsmith77 commented Mar 4, 2013

So where are we at here? Is this "fixed", do we have a cookbook entry?

@jmather
Copy link
Author

jmather commented Mar 4, 2013

I think I know how to get us to a 'better spot' even though it may not just be 'fixed' yet.

I think we should remove the requirement of the environment variable override, since data for the wrong version won't work anyway, so we may as well make it easy to switch versions.

Then we should do a manual check to make sure we can access the data files, and if not, throw an exception pointing them to a web page which describes how to rebuild the data files.

Bonus points if we can provide a place to just download zips of the compiled data files.

Extra bonus points if we can get ICU version detection into composer (there's been conversations w/ @Seldaek about this on twitter) so that it just automatically installs the right one when you composer install. Or perhaps we could write a post-install script which handles it, as the files installed will depend on the exact compile of PHP, which means we would have to make composer NOT read the composer.lock for the ICU data files.

Ok, so I negated the last "Extra bonus points" w/ that caveat -- so Extra bonus points go for a set of scripts to run post-[ install | update ] and manually to apply the correct version of the ICU data files from a precompiled source. I think this would actually be considered 'fully fixed' as far as this issue is capable of being fixed.

I would offer to do this but simply do not have the time. I wanted to write up my over-all thoughts on this as I had raised it with @fabpot at SunshinePHP and we'd essentially left it at "well, hm, we'll have to think about that."

@Seldaek
Copy link
Member

Seldaek commented Mar 4, 2013

lib-ICU gives you the ICU version in composer

@webmozart
Copy link
Contributor

I'm currently working on a fix for this issue.

@dinamic
Copy link

dinamic commented Mar 11, 2013

Perhaps the issue status should not indicate 'CLOSED' :)

@kbsali
Copy link
Contributor

kbsali commented Mar 11, 2013

👍 to re-opening the issue until it's really fixed!

@bendavies
Copy link
Contributor

@bschussek is that component split the fix for this issue? I feel that won't be merged for a long time, so this bug fix will be left hanging. Is there something quicker that can be done to fix this?

@webmozart
Copy link
Contributor

@bendavies I hope that the component split will be merged in the next couple of days.

fabpot added a commit that referenced this issue Apr 18, 2013
This PR was merged into the master branch.

Discussion
----------

[Intl] Refactored Locale component into two new components Icu and Intl

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | yes
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | #5279
| License       | MIT
| Doc PR        | symfony/symfony-docs#2312

The Intl component is now a simple drop-in replacement layer for the C intl extension. Install it via Composer and have it available automatically if the intl extension is not available.

Additionally, the component ships data from the ICU library which can be accessed through the methods:

```php
use Symfony\Component\Intl\Intl;

Intl::getCurrencyBundle()->...
Intl::getLanguageBundle()->...
Intl::getLocaleBundle()->...
Intl::getRegionBundle()->...
```

If the intl extension is installed, Composer will install the ICU data for the ICU version in the intl extension. If the intl extension is not installed, Composer will use stub ICU data for the latest ICU version (see `Intl::getStubIcuVersion()`).

See the [README](/bschussek/symfony/blob/intl/src/Symfony/Component/Intl/README.md) for more information.

Todo:

- [x] finish the Intl README file
- [x] update the Icu README file
- [x] update the documentation
- [x] make parameter `$locale` optional (default to `\Locale::getDefault()`) in resource bundle methods
- [x] remove `(Icu)?Version::compare` calls in the tests
- [x] solve deployment problem when trying to install incompatible symfony/icu version listed in composer.lock

Create the following branches in the [Icu component](https://github.com/symfony/Icu):

- [x] 1.0.x
- [x] 1.1.x
- [x] 1.2.x

Commits
-------

9118b4a [Locale] Removed "Stub" prefixes in Intl component
b4cccfd [Intl] Removed "Stub" prefix from stub classes
60f31d1 [Intl] Improved inline documentation
c2d37e6 [Intl] Improved error messages in the build scripts
1249f01 [Intl] Added scripts to test the compatibility of various versions of symfony/icu with the ICU version installed on the system
9dbafd7 [Intl] Split update-stubs.php script into two scripts to function with the changed Icu component versioning
e2c11cb [Intl] Added a check for the ICU data version to IntlTestHelper to prevent the stub class tests from failing
427d24a [Intl] Outsourced bundle reader creation to Icu component
0160fd5 [Intl] Moved stub data to Icu component 1.0.x
dbca3b7 [Intl] Added empty directory needed for the tests
a717ce9 [Intl] Removed ICU version comparisons from the tests
5d17de5 [Intl] Fixed version comparisons in the transformation rules
470927d [Intl] Improved build scripts
aceb20d [Form] Improved tests to use the IntlTestHelper class
3dd75ff [Locale] Improved tests to use the IntlTestHelper class
03b78b0 [Validator] Improved tests to use the IntlTestHelper class
9d9c389 [Intl] Simplified tests
c55c4a2 [Intl] Only the StubNumberFormatterTest requires stub data
17a480b [Intl] Added IntlTestHelper class for convenience
1dcdcd3 [Locale] Fixed failing tests
f6b75b9 [Intl] Changed composer.json to disallow future versions of the Icu component
080c880 [Intl] Bumped the stub version to 50.1.2
dd2d013 [Intl] Improved the bundle compilation process
f47e60a [Intl] Fixed small bugs in the resource bundle transformation
467cc93 [Intl] Fixed various problems in the resource compilation process
4a5c453 [Intl] Moved the content of the README file to symfony/symfony-docs
9899de7 [Intl] Updated the README
bfec58a [Intl] Fixed flawed PHPDoc
21323ba [Intl] Updated the README file
209a9cb [Validator] Adapted to latest Intl changes
f2a0aec [Form] Adapted to latest Intl changes
0f6277f [Locale] Adapted to latest Intl changes
2cd1be8 [Intl] Made the $locale parameter optional in the bundle interfaces
b9e9cb2 [Intl] Added autoload.php which was ignored by .gitignore
838798f [Intl] Removed method IntlTestCase::skipIfInsufficientIcuVersion()
dde1d34 [Intl] Changed Intl::getIcuVersion() to return the stub version if the intl extension is not loaded
99f6f8a [Form] Fixed failing tests
5d0b849 Fixed PHPDoc
b60866c [Intl] Changed Intl::getStubIcuVersion() to Intl::getIcuStubVersion()
b902b6b [Locale] Added default locale
01d0ee8 [Validator] Changed component to use the Intl component
0c1fe39 [Form] Changed component to use the Intl component
5917a2e [Intl] Refactored Locale component into two new components Icu and Intl
@fabpot fabpot closed this as completed Apr 18, 2013
@kalinick
Copy link

Hi guys!

As for me solution with version 4.2 not good, because, for example I had 3.8.1. and I don't like to change symfony src files
So I would like to give small introduction how install 49 version

You should:

I hope my comment helps

@webmozart
Copy link
Contributor

@kalinick I just added support for ICU 3.8 to the Icu component.

@OzzieOrca
Copy link

Using #5279 (comment) and a pre-compiled version of the resource files for 4.2 from https://github.com/kbsali/sf2-icu I got it to work on a Bluehost shared hosting server where I couldn't recompile the resource files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests