Re: __clone() implementation
| From: | Andi Gutmans | Date: | Mon, 02 Feb 2004 19:39:58 +0000 |
| Subject: | Re: __clone() implementation | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-7486@lists.php.net to get a copy of this message | ||
At 06:49 PM 2/2/2004 +0000, Stephane Drouard wrote:
== Quote from Zeev Suraski (zeev@zend.com)'s article Both are valid points, and they both sound like the same problem from two different angles. I think that the best approach would be to first do an implicit clone (i.e., 'dumb' copy of all of the elements), and then call __clone(), even if it exists. It should solve both cases. Do you mean that PHP does this bit for bit copy before calling __clone? If yes, this was my original request, so I will be very happy.Yeah, that's what we'll do. Andi