Skip to content

Commit 7bbed18

Browse files
xPawcmb69
authored andcommitted
[ci skip] Add note that imagedestroy() no longer has an effect
Closes GH-6427.
1 parent f5be0e5 commit 7bbed18

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

UPGRADING

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,9 @@ PHP 8.0 UPGRADE NOTES
314314
. The GD extension now uses a GdImage objects as the underlying data structure
315315
for images, rather than resources. These objects are completely opaque, i.e.
316316
they don't have any methods. Return value checks using is_resource() should
317-
be replaced with checks for `false`.
317+
be replaced with checks for `false`. The imagedestroy() function no longer
318+
has an effect, instead the GdImage instance is automatically destroyed if
319+
it is no longer referenced.
318320
. The deprecated function image2wbmp() has been removed.
319321
RFC: https://wiki.php.net/rfc/image2wbmp
320322
. The deprecated functions png2wbmp() and jpeg2wbmp() have been removed.

0 commit comments

Comments
 (0)