Req #51787 [Opn->Bgs]: cloning objects
| From: | mike@php.net | Date: | Wed, 12 May 2010 06:17:41 +0000 |
| Subject: | Req #51787 [Opn->Bgs]: cloning objects | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-150362@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51787&edit=1
ID: 51787
Updated by: mike@php.net
Reported by: ele_hache at hotmail dot com
Summary: cloning objects
-Status: Open
+Status: Bogus
Type: Feature/Change Request
Package: *General Issues
Operating System: WINDOWS
PHP Version: 5.3.2
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2010-05-10 20:35:12] ele_hache at hotmail dot com
Description:
------------
If I have an object that has references to different other objects and
even a few
collections [arrays] of some even other objects; and I want to make a
copy of that
instance ?? Must I clone the entire instance structure and performing a
clone on
every other referenced object and the collections ?? If yes ... What a
shit !!!
The _clone call should be aware of the other referenced objects inside
an object,
and do the clone as well. After all, why am I doing a clone, don't you
think ??
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=51787&edit=1