note 110808 added to imagick.clear

From: Date: Tue, 11 Dec 2012 08:46:20 +0000
Subject: note 110808 added to imagick.clear
Groups: php.notes 
Request: Send a blank email to php-notes+get-192454@lists.php.net to get a copy of this message
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: http://php.net/manual/en/imagick.destroy.php ---- Server IP: 212.124.37.9 Probable Submitter: 217.24.205.139 ---- Manual Page -- http://php.net/manual/en/imagick.clear.php Edit -- https://master.php.net/note/edit/110808 Del: integrated -- https://master.php.net/note/delete/110808/integrated Del: useless -- https://master.php.net/note/delete/110808/useless Del: bad code -- https://master.php.net/note/delete/110808/bad+code Del: spam -- https://master.php.net/note/delete/110808/spam Del: non-english -- https://master.php.net/note/delete/110808/non-english Del: in docs -- https://master.php.net/note/delete/110808/in+docs Del: other reasons-- https://master.php.net/note/delete/110808 Reject -- https://master.php.net/note/reject/110808 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#192454) next »