Doc #65043 [Opn->Csd]: Destroy and clear method do the same things

From: Date: Wed, 25 Sep 2013 07:35:13 +0000
Subject: Doc #65043 [Opn->Csd]: Destroy and clear method do the same things
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-10300@lists.php.net to get a copy of this message
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)

« previous php.doc.bugs (#10300) next »