Repository navigation
Commit 1d9da89
committed
ext/gd: fix imagecreate_error_oversized.phpt on 32-bit
On 32-bit platforms 4294967296 is a float that doesn't fit in an int, so
imagecreate() and imagecreatetruecolor() throw a TypeError before they
check the range, and the test fails. It has failed in the
LINUX_X32_DEBUG_ZTS job since it was added in 66c0f52.
Move that value to a test for 64-bit platforms. The values that remain,
PHP_INT_MAX and 2147483647, are valid ints on all platforms.1 parent a7598d3 commit 1d9da89
2 files changed
Lines changed: 22 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments