Doc #65043 [Opn->Csd]: Destroy and clear method do the same things
Edit report at https://bugs.php.net/bug.php?id=65043&edit=1
ID: 65043
Updated by: mkoppanen@php.net
Reported by: admin at dinacel dot com
Summary: Destroy and clear method do the same things
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: imagick
Operating System: All
PHP Version: Irrelevant
-Assigned To:
+Assigned To: mkoppanen
Block user comment: N
Private report: N
New Comment:
Added a fix
Previous Comments:
------------------------------------------------------------------------
[2013-06-16 03:27:21] admin at dinacel dot com
Description:
------------
Destroy and clear method do the same things but it is not specified in the
documentation. I've seen that they use both functions in the Wordpress code, it is
not so dramatic, but they are doing 2 functions call when only one would sufice.
One function should be the alias of the other to reduce code duplication too.
Test script:
---------------
<?php
$imagick = new Imagick();
$imagick->clear();
$imagick = new Imagick();
$imagick->destroy();
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65043&edit=1
Thread (2 messages)