From 450a7d2c66612f7d76a2101df17a29a081102cda Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Sat, 14 Nov 2020 13:12:38 +0200 Subject: [PATCH] Add note that imagedestroy() no longer has an effect --- UPGRADING | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UPGRADING b/UPGRADING index 37cf35cb4710..da4509e5c0e0 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.