[php-src] PR #25386: Report the upper bound in the imagecreate() and imagecreatetruecolor() size errors

From: Date: Wed, 11 Nov 2026 09:43:39 +0000
Subject: [php-src] PR #25386: Report the upper bound in the imagecreate() and imagecreatetruecolor() size errors
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-40534@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25386 Author: lacatoire imagecreate() and imagecreatetruecolor() reject a width or height of INT_MAX or more with "must be greater than 0", which is false for every positive value rejected on the upper side. Add the upper bound to the message. ```php <?php imagecreate(PHP_INT_MAX, 1); ``` Before: ValueError: imagecreate(): Argument #1 ($width) must be greater than 0 After: ValueError: imagecreate(): Argument #1 ($width) must be greater than 0 and less than 2147483647

« previous php.git-pulls (#40534) next »