Commit ff27d73
Sjoerd Langkemper
Fix test by creating large integer differently
The test for overflow used a large integer, larger than PHP_INT_MAX.
Previously it used base_convert to create an integer 4 * PHP_INT_MAX,
but that now raises an overflow warning. We now use PHP_INT_MAX and
append a zero, giving 10 * PHP_INT_MAX.
We can't just use 4 * PHP_INT_MAX, because that is converted to a float
and represented as 3.6893488147419E+19 instead of 36893488147419104082.1 parent 1301be7 commit ff27d73
1 file changed
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments