php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #62542 User comment incorrect and misleading. No real docs to read.
Submitted: 2012-07-12 16:25 UTC Modified: 2012-07-20 05:38 UTC
From: michael dot white at mediamacros dot net Assigned: aharvey (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: N/A
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: michael dot white at mediamacros dot net
New email:
PHP Version: OS:

 

 [2012-07-12 16:25 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-07-20 05:38 UTC] 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-20 05:38 UTC] aharvey@php.net
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.


 [2012-07-20 05:38 UTC] aharvey@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: aharvey
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 06 09:00:02 2026 UTC