note 96852 deleted from language.oop5.cloning by cmb

From: Date: Sun, 10 Jul 2016 20:10:16 +0000
Subject: note 96852 deleted from language.oop5.cloning by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-205952@lists.php.net to get a copy of this message
Note Submitter: olivier dot pons at goo dot without dot oo dot mail dot com ---- 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.

« previous php.notes (#205952) next »