From: Pavel Djundik Date: Sat, 14 Nov 2020 11:12:38 +0000 (+0200) Subject: [ci skip] Add note that imagedestroy() no longer has an effect X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7bbed1808613aed5ac30c5c0edc2ce938489a072;p=php [ci skip] Add note that imagedestroy() no longer has an effect Closes GH-6427. --- diff --git a/UPGRADING b/UPGRADING index 37cf35cb47..da4509e5c0 100644 --- a/UPGRADING +++ b/UPGRADING @@ -314,7 +314,9 @@ PHP 8.0 UPGRADE NOTES . The GD extension now uses a GdImage objects as the underlying data structure for images, rather than resources. These objects are completely opaque, i.e. they don't have any methods. Return value checks using is_resource() should - be replaced with checks for `false`. + be replaced with checks for `false`. The imagedestroy() function no longer + has an effect, instead the GdImage instance is automatically destroyed if + it is no longer referenced. . The deprecated function image2wbmp() has been removed. RFC: https://wiki.php.net/rfc/image2wbmp . The deprecated functions png2wbmp() and jpeg2wbmp() have been removed.