com php-src: Remove -1 crop mode: UPGRADING ext/gd/gd.c

From: Date: Wed, 30 Jan 2019 15:46:36 +0000
Subject: com php-src: Remove -1 crop mode: UPGRADING ext/gd/gd.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-104405@lists.php.net to get a copy of this message
Commit: e18fde1a02f405490e3a97dd45f074dafd51eef2 Author: Nikita Popov <nikita.ppv@gmail.com> Wed, 30 Jan 2019 16:46:36 +0100 Parents: f8038f827c611af1219d84ea8af5ce6ea9c9d351 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e18fde1a02f405490e3a97dd45f074dafd51eef2 Log: Remove -1 crop mode Changed paths: M UPGRADING M ext/gd/gd.c Diff: diff --git a/UPGRADING b/UPGRADING index 20fbca9..4b37b5e 100644 --- a/UPGRADING +++ b/UPGRADING @@ -53,6 +53,8 @@ PHP 8.0 UPGRADE NOTES RFC: https://wiki.php.net/rfc/image2wbmp . The deprecated functions png2wbmp() and jpeg2wbmp() have been removed. RFC: https://wiki.php.net/rfc/deprecate-png-jpeg-2wbmp + . The default $mode parameter of imagecropauto() no longer accepts -1. + IMG_CROP_DEFAULT should be used instead. - GMP: . gmp_random() has been removed. One of gmp_random_range() or diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 6e07da9..2addf73 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -4452,10 +4452,6 @@ PHP_FUNCTION(imagecropauto) } switch (mode) { - case -1: - php_error_docref(NULL, E_DEPRECATED, "Crop mode -1 is deprecated. Use IMG_CROP_DEFAULT instead."); - mode = GD_CROP_DEFAULT; - /* FALLTHRU */ case GD_CROP_DEFAULT: case GD_CROP_TRANSPARENT: case GD_CROP_BLACK:

« previous php.cvs (#104405) next »