Bulgaria PHP Conference


(PECL imagick 2.0.0)

Imagick::clearClears all resources associated to Imagick object


bool Imagick::clear ( void )

Clears all resources associated to Imagick object

Valori restituiti

Restituisce TRUE in caso di successo.

add a note add a note

User Contributed Notes 3 notes

kd0bpv at gmail dot com
11 months ago
Imagick::destroy() has been deprecated in favor of Imagick::clear().
markus dot s dot schmitz at gmail dot com
2 years ago
One might be suprised that there seems to be no difference between:

= new Imagick();


= new Imagick();

Both functions reset all options and clear all used resources so you might want to use either one of them.
See also: http://php.net/manual/en/imagick.destroy.php
admin at dinacel dot com
1 year ago
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.
To Top