note 96852 added to language.oop5.cloning
| From: | olivier dot pons at goo dot without dot oo dot mail dot com | Date: | Fri, 19 Mar 2010 06:14:10 +0000 |
| Subject: | note 96852 added to language.oop5.cloning | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-167190@lists.php.net to get a copy of this message | ||
If you think "clone" will create a new instance, thus calling "__constructor",
you're wrong. clone seems to only allocate memory for the object cloned, and simply copies the
variables memory from the original to the new one (imagine something alike memcpy() in C). Nothing
more. Keep in mind you'll have to do all the rest by yourself.
----
Server IP: 69.147.83.197
Probable Submitter: 78.224.184.168
----
Manual Page -- http://www.php.net/manual/en/language.oop5.cloning.php
Edit -- https://master.php.net/note/edit/96852
Del: integrated -- https://master.php.net/note/delete/96852/integrated
Del: useless -- https://master.php.net/note/delete/96852/useless
Del: bad code -- https://master.php.net/note/delete/96852/bad+code
Del: spam -- https://master.php.net/note/delete/96852/spam
Del: non-english -- https://master.php.net/note/delete/96852/non-english
Del: in docs -- https://master.php.net/note/delete/96852/in+docs
Del: other reasons-- https://master.php.net/note/delete/96852
Reject -- https://master.php.net/note/reject/96852
Search -- https://master.php.net/manage/user-notes.php