1
0
mirror of https://github.com/php/doc-ru.git synced 2026-04-26 08:48:12 +02:00
Files
archived-doc-ru/reference/image/functions/imagedestroy.xml
T
Sergey Panteleev 6d43fd64d7 Исправление форматирования
[skip-spellcheck]
[skip-lint]
2022-12-27 03:42:36 +03:00

101 lines
2.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 52dc204a77076e1404257cf39f179882b90b5780 Maintainer: tmn Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.imagedestroy" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>imagedestroy</refname>
<refpurpose>Уничтожение изображения</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>imagedestroy</methodname>
<methodparam><type>GdImage</type><parameter>image</parameter></methodparam>
</methodsynopsis>
&note.resource-migration-8.0-dead-function;
<para>
До PHP 8.0.0, <function>imagedestroy</function> освобождает память, занятую изображением
<parameter>image</parameter>.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
&gd.image.description;
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.success;
</para>
</refsect1>
<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>8.0.0</entry>
<entry>
Функция теперь является <acronym>NOP</acronym>.
</entry>
</row>
&gd.changelog.image-param;
</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>Пример использования <function>imagedestroy</function> до PHP 8.0.0</title>
<programlisting role="php">
<![CDATA[
<?php
// Создание изображения 100 x 100
$im = imagecreatetruecolor(100, 100);
// изменение или сохранение изображения
// освобождение памяти
imagedestroy($im);
?>
]]>
</programlisting>
</example>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->