Doc #65043 [NEW]: Destroy and clear method do the same things
| From: | admin at dinacel dot com | Date: | Sun, 16 Jun 2013 03:27:22 +0000 |
| Subject: | Doc #65043 [NEW]: Destroy and clear method do the same things | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-9942@lists.php.net to get a copy of this message | ||
From: admin at dinacel dot com
Operating system: All
PHP version: Irrelevant
Package: imagick
Bug Type: Documentation Problem
Bug description:Destroy and clear method do the same things
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 bug report at https://bugs.php.net/bug.php?id=65043&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65043&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=65043&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65043&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=65043&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=65043&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=65043&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=65043&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=65043&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=65043&r=support
Expected behavior: https://bugs.php.net/fix.php?id=65043&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=65043&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=65043&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=65043&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65043&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=65043&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=65043&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=65043&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65043&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=65043&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=65043&r=mysqlcfg