reference/image/functions/imagedestroy.xml
52dc204a77076e1404257cf39f179882b90b5780
...
...
@@ -9,10 +9,11 @@
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
11
<type>bool</type><methodname>imagedestroy</methodname>
12
-
<methodparam><type>resource</type><parameter>image</parameter></methodparam>
12
+
<methodparam><type>GdImage</type><parameter>image</parameter></methodparam>
13
13
</methodsynopsis>
14
+
&note.resource-migration-8.0-dead-function;
14
15
<para>
15
-
<function>imagedestroy</function> frees any memory associated
16
+
Prior to PHP 8.0.0, <function>imagedestroy</function> freed any memory associated
16
17
with image <parameter>image</parameter>.
17
18
</para>
18
19
</refsect1>
...
...
@@ -30,11 +31,35 @@
30
31
&return.success;
31
32
</para>
32
33
</refsect1>
34
+

35
+
<refsect1 role="changelog">
36
+
&reftitle.changelog;
37
+
<informaltable>
38
+
<tgroup cols="2">
39
+
<thead>
40
+
<row>
41
+
<entry>&Version;</entry>
42
+
<entry>&Description;</entry>
43
+
</row>
44
+
</thead>
45
+
<tbody>
46
+
<row>
47
+
<entry>8.0.0</entry>
48
+
<entry>
49
+
This function is a <acronym>NOP</acronym> now.
50
+
</entry>
51
+
</row>
52
+
&gd.changelog.image-param;
53
+
</tbody>
54
+
</tgroup>
55
+
</informaltable>
56
+
</refsect1>
57
+

33
58
<refsect1 role="examples">
34
59
&reftitle.examples;
35
60
<para>
36
61
<example>
37
-
<title>Using <function>imagedestroy</function> example</title>
62
+
<title>Using <function>imagedestroy</function> prior to PHP 8.0.0</title>
38
63
<programlisting role="php">
39
64
<![CDATA[
40
65
<?php
...
...
@@ -52,7 +77,6 @@ imagedestroy($im);
52
77
</para>
53
78
</refsect1>
54
79
</refentry>
55
-

56
80
<!-- Keep this comment at the end of the file
57
81
Local variables:
58
82
mode: sgml
59
83