Doc #62542 [NEW]: User comment incorrect and misleading. No real docs to read.
From: michael dot white at mediamacros dot net
Operating system: N/A
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:User comment incorrect and misleading. No real docs to read.
Description:
------------
---
From manual page: http://www.php.net/imagick.clone
---
One user reported that clone() is deprecated and that the clone keyword
should be
used instead as of 3.1.0.
However, when using the clone keyword you actually get an exception thrown
stating that you are trying to clone an unclonable object. The fix is to
use the
clone method of the Imagick class instead of the clone keyword.
The user comment should be removed and, if necessary, replaced with
accurate
information on when the clone() method was deprecated, when/if it will be
removed, and when/if the clone keyword will ever work in the future.
Test script:
---------------
<?php
$image = new Imagick();
$clonedImage = $image->clone(); // Works
$anotherClonedImage = clone $image; // Throws an exception
--
Edit bug report at https://bugs.php.net/bug.php?id=62542&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62542&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62542&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62542&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=62542&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62542&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=62542&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=62542&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=62542&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=62542&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=62542&r=support
Expected behavior: https://bugs.php.net/fix.php?id=62542&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=62542&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=62542&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=62542&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62542&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=62542&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=62542&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=62542&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=62542&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=62542&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=62542&r=mysqlcfg
Thread (2 messages)
- michael dot white at mediamacros dot net