bug #18399 [Intl] Fix int32 min boundary check (nicolas-grekas)
This PR was merged into the 3.0 branch.
Discussion
----------
[Intl] Fix int32 min boundary check
| Q | A
| ------------- | ---
| Branch? | 3.0
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | -
| License | MIT
| Doc PR | -
This is the right fix, introduced in a bad merge.
Commits
-------
f29476e
[Intl] Fix int32 min boundary check
This commit is contained in:
commit
42dd362aab
@ -851,7 +851,7 @@ class NumberFormatter
|
||||
return false;
|
||||
}
|
||||
|
||||
if (PHP_INT_SIZE !== 8 && ($value > self::$int32Max || $value <= -self::$int32Max - 1)) {
|
||||
if (PHP_INT_SIZE !== 8 && ($value > self::$int32Max || $value < -self::$int32Max - 1)) {
|
||||
return (float) $value;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user