note 75366 added to migration5.oop
| From: | bdas at premiergroup dot uk dot com | Date: | Fri, 25 May 2007 14:49:06 +0000 |
| Subject: | note 75366 added to migration5.oop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-126898@lists.php.net to get a copy of this message | ||
Since PHP5 upgraded PHP to an OOP language, they CHANGED the metaphor so that when you copy an
object, you just get a pointer to it (as in C# and Java) and so therefore they needed to make a way
to CLONE objects as well in case you need a REAL copy of the object.
Most cases, clone is not needed, simply because a real copy of an object is usually not mandatory.
In special cases, object cloning can be used to save time in porting.
----
Server IP: 216.194.113.175
Probable Submitter: 62.232.64.234
----
Manual Page -- http://www.php.net/manual/en/migration5.oop.php
Edit -- https://master.php.net/note/edit/75366
Del: integrated -- https://master.php.net/note/delete/75366/integrated
Del: useless -- https://master.php.net/note/delete/75366/useless
Del: bad code -- https://master.php.net/note/delete/75366/bad+code
Del: spam -- https://master.php.net/note/delete/75366/spam
Del: non-english -- https://master.php.net/note/delete/75366/non-english
Del: in docs -- https://master.php.net/note/delete/75366/in+docs
Del: other reasons-- https://master.php.net/note/delete/75366
Reject -- https://master.php.net/note/reject/75366
Search -- https://master.php.net/manage/user-notes.php