Skip to content

[Locale] use the correct way for Intl error #3765

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
wants to merge 2 commits into from

Conversation

stealth35
Copy link
Contributor

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: -
Todo: Needs feedback

All Stub* should filled the intl_get_*

An ICU error code may have differents messages and it's a failure only when it > 0 (a negative code is just a warning)

I think this PR should be more simple, (cause all sucess method should return a U_ZERO_ERROR) so I need your feedback
After this I'll make a PR for the StubResourceBundle ✌️

@fabpot
Copy link
Member

fabpot commented Apr 11, 2012

@eriksencosta, @igorw: Can you give me your thoughts?

@ghost
Copy link

ghost commented Apr 11, 2012

@fabpot This seems right, I'll need to check it at home but I saw that the tests passed in PHP 5.3.2 in @stealth35 Travis builds.

@igorw we need to talk to find a better way to manage the Locale maintenance. Things like this are becoming a nightmare with some of the intl updates. We need to specify a cycle to update the ICU data too and see how this can affect our tests (a lot changed since the last update that I made in April 2011). Are you interested?

@fabpot
Copy link
Member

fabpot commented Apr 11, 2012

see #3528 for a PR on ICU data update.

@stloyd
Copy link
Contributor

stloyd commented Apr 14, 2012

@fabpot Any info why this is not merged yet ?

@fabpot
Copy link
Member

fabpot commented Apr 14, 2012

I'm just waiting for an ack from @eriksencosta or @igorw

@stof
Copy link
Member

stof commented Apr 14, 2012

it also needs to be rebased

@ghost
Copy link

ghost commented Apr 14, 2012

I'm cherry-picking it to 2.0 it now and will push a new PR.

@ghost
Copy link

ghost commented Apr 14, 2012

@fabpot @stof @stealth35 Please, see #3765.

@fabpot
Copy link
Member

fabpot commented Apr 15, 2012

Closing in favor of #3765

@fabpot fabpot closed this Apr 15, 2012
fabpot added a commit that referenced this pull request Apr 15, 2012
Commits
-------

b1ea552 [Locale] micro-optimization
663d218 [Locale] changed method name
bb61e09 [Locale] use the correct way for Intl error

Discussion
----------

[2.0][Locale] rebased PR 3765 plus few changes

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: -
Todo: -

#3765 was right but was made in master. Cherry-picked and rebased for 2.0.

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

Successfully merging this pull request may close these issues.

4 participants