File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,8 @@ PHP 8.0 UPGRADE NOTES
53
53
RFC: https://wiki.php.net/rfc/image2wbmp
54
54
. The deprecated functions png2wbmp() and jpeg2wbmp() have been removed.
55
55
RFC: https://wiki.php.net/rfc/deprecate-png-jpeg-2wbmp
56
+ . The default $mode parameter of imagecropauto() no longer accepts -1.
57
+ IMG_CROP_DEFAULT should be used instead.
56
58
57
59
- GMP:
58
60
. gmp_random() has been removed. One of gmp_random_range() or
Original file line number Diff line number Diff line change @@ -4452,10 +4452,6 @@ PHP_FUNCTION(imagecropauto)
4452
4452
}
4453
4453
4454
4454
switch (mode ) {
4455
- case -1 :
4456
- php_error_docref (NULL , E_DEPRECATED , "Crop mode -1 is deprecated. Use IMG_CROP_DEFAULT instead." );
4457
- mode = GD_CROP_DEFAULT ;
4458
- /* FALLTHRU */
4459
4455
case GD_CROP_DEFAULT :
4460
4456
case GD_CROP_TRANSPARENT :
4461
4457
case GD_CROP_BLACK :
You can’t perform that action at this time.
0 commit comments