Doc #62542 [Opn->Csd]: User comment incorrect and misleading. No real docs to read.

From: Date: Fri, 20 Jul 2012 05:38:35 +0000
Subject: Doc #62542 [Opn->Csd]: User comment incorrect and misleading. No real docs to read.
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-8597@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62542&edit=1 ID: 62542 Updated by: aharvey@php.net Reported by: michael dot white at mediamacros dot net Summary: User comment incorrect and misleading. No real docs to read. -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem Operating System: N/A PHP Version: Irrelevant -Assigned To: +Assigned To: aharvey Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2012-07-20 05:38:22] aharvey@php.net Automatic comment from SVN on behalf of aharvey Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=326721 Log: Fix doc bug #62542 (User comment incorrect and misleading. No real docs to read.). ------------------------------------------------------------------------ [2012-07-12 16:25:35] michael dot white at mediamacros dot net 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 this bug report at https://bugs.php.net/bug.php?id=62542&edit=1

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