Skip to content

Commit 6669426

Browse files
b1rdexcmb69
authored andcommitted
[ci skip] Make it clear what GD uses instead of resources
Closes GH-6342.
1 parent d6264b0 commit 6669426

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

UPGRADING

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,10 @@ PHP 8.0 UPGRADE NOTES
311311
warning.
312312

313313
- GD:
314-
. The GD extension now uses objects as the underlying data structure for
315-
images, rather than resources. These objects are completely opaque, i.e.
316-
they don't have any methods.
314+
. The GD extension now uses a GdImage objects as the underlying data structure
315+
for images, rather than resources. These objects are completely opaque, i.e.
316+
they don't have any methods. Return value checks using is_resource() should
317+
be replaced with checks for `false`.
317318
. The deprecated function image2wbmp() has been removed.
318319
RFC: https://wiki.php.net/rfc/image2wbmp
319320
. The deprecated functions png2wbmp() and jpeg2wbmp() have been removed.

0 commit comments

Comments
 (0)