Skip to content

Commit de13997

Browse files
gd: explain why imagedestroy() is NOP (#4395)
Co-authored-by: Kamil Tekiela <[email protected]>
1 parent bcafb20 commit de13997

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

reference/image/functions/imagedestroy.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
</methodsynopsis>
1414
&note.resource-migration-8.0-dead-function;
1515
<para>
16-
Prior to PHP 8.0.0, <function>imagedestroy</function> freed any memory associated
17-
with image <parameter>image</parameter>.
16+
Prior to PHP 8.0.0, <function>imagedestroy</function> freed any memory
17+
associated with the <parameter>image</parameter> resource. As of 8.0.0,
18+
the GD extension uses objects instead of resources, and objects
19+
cannot be explicitly closed.
1820
</para>
1921
</refsect1>
2022
<refsect1 role="parameters">

0 commit comments

Comments
 (0)