[php-src] PR #25423: ext/gd: fix imagecreate_error_oversized.phpt on 32-bit
| From: | felixbuenemann | Date: | Thu, 12 Nov 2026 14:56:44 +0000 |
| Subject: | [php-src] PR #25423: ext/gd: fix imagecreate_error_oversized.phpt on 32-bit | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-40583@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25423
Author: felixbuenemann
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 66c0f525665.
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.