PHP 8.1.15 Released!


(PECL imagick 2, PECL imagick 3)

Imagick::clearLibère toutes les ressources associées à un objet Imagick


public Imagick::clear(): bool

Libère toutes les ressources associées à un objet Imagick.

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Valeurs de retour

Retourne true en cas de succès.

add a note

User Contributed Notes 3 notes

kd0bpv at gmail dot com
8 years ago
Imagick::destroy() has been deprecated in favor of Imagick::clear().
admin at dinacel dot com
9 years ago
Destroy and clear methods seem to do exactly the same thing
@see (l.3066 & l.3087)

The code is duplicated, they do the same thing a bit differently.
markus dot s dot schmitz at gmail dot com
10 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:
To Top