Imagick::clear

(PECL imagick 2.0.0)

Imagick::clearОчищает все ресурсы, связанные с объектом Imagick

Описание

bool Imagick::clear ( void )

Очищает все ресурсы, связанные с объектом Imagick

Возвращаемые значения

В случае успешной работы возвращает TRUE.

Коментарии

One might be suprised that there seems to be no difference between:

<?php
$imagick 
= new Imagick();
$imagick->clear();
$imagick->readImage('myfile.jpg');
?>

and

<?php
$imagick 
= new Imagick();
$imagick->destroy();
$imagick->readImage('myfile.jpg');
?>

Both functions reset all options and clear all used resources so you might want to use either one of them.
See also: imagick.destroy
2012-12-11 10:46:18
http://php5.kiev.ua/manual/ru/imagick.clear.html
Destroy and clear methods seem to do exactly the same thing
@see http://svn.php.net/viewvc/pecl/imagick/trunk/imagick_class.c?view=markup (l.3066 & l.3087)

The code is duplicated, they do the same thing a bit differently.
2013-06-16 06:18:14
http://php5.kiev.ua/manual/ru/imagick.clear.html
Imagick::destroy() has been deprecated in favor of Imagick::clear().
2014-03-06 00:31:29
http://php5.kiev.ua/manual/ru/imagick.clear.html

    Поддержать сайт на родительском проекте КГБ