Skip to content

Commit

Permalink
gd: explain why imagedestroy() is NOP (#4395)
Browse files Browse the repository at this point in the history
Co-authored-by: Kamil Tekiela <[email protected]>
  • Loading branch information
pereorga and kamil-tekiela authored Jan 17, 2025
1 parent bcafb20 commit de13997
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions reference/image/functions/imagedestroy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
</methodsynopsis>
&note.resource-migration-8.0-dead-function;
<para>
Prior to PHP 8.0.0, <function>imagedestroy</function> freed any memory associated
with image <parameter>image</parameter>.
Prior to PHP 8.0.0, <function>imagedestroy</function> freed any memory
associated with the <parameter>image</parameter> resource. As of 8.0.0,
the GD extension uses objects instead of resources, and objects
cannot be explicitly closed.
</para>
</refsect1>
<refsect1 role="parameters">
Expand Down

0 comments on commit de13997

Please sign in to comment.