Skip to content

[Intl] Fix invalid numeric literal on PHP 7 #18216

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

Merged
merged 1 commit into from
Mar 18, 2016

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 2.3
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

Work around true === is_float(-9223372036854775808).

@javiereguiluz javiereguiluz changed the title [NumberFormatter] Fix invalid numeric literal on PHP 7 [Intl] Fix invalid numeric literal on PHP 7 Mar 17, 2016
@@ -213,24 +213,18 @@ class NumberFormatter
);

/**
* The maximum values of the integer type in 32 bit platforms.
* The maximum value of the integer type in 32 bit platforms.
*
* @var array
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs update

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed thanks

@Tobion
Copy link
Contributor

Tobion commented Mar 17, 2016

While you are at it, the @return on parse is wrong as well. It must be @return int|float|false

When merging in 3.0 the @see https://bugs.php.net/bug.php?id=59597 Bug #59597 should be removed as the bug is not relevant in the 3.x PHP versions. Maybe it's easiest the remove this @see directly here and thus merged upwards as the bug is already referenced in the code.

@nicolas-grekas
Copy link
Member Author

@Tobion updated

@Tobion
Copy link
Contributor

Tobion commented Mar 17, 2016

👍

Status: Reviewed

@fabpot
Copy link
Member

fabpot commented Mar 18, 2016

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 999c0a5 into symfony:2.3 Mar 18, 2016
fabpot added a commit that referenced this pull request Mar 18, 2016
This PR was merged into the 2.3 branch.

Discussion
----------

[Intl] Fix invalid numeric literal on PHP 7

| Q             | A
| ------------- | ---
| Branch?       | 2.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Work around `true === is_float(-9223372036854775808)`.

Commits
-------

999c0a5 [NumberFormatter] Fix invalid numeric literal on PHP 7
@nicolas-grekas nicolas-grekas deleted the fix-18082 branch March 18, 2016 10:21
@fabpot fabpot mentioned this pull request Apr 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants