Re: __clone() implementation
| From: | Stanislav Malyshev | Date: | Tue, 03 Feb 2004 08:46:23 +0000 |
| Subject: | Re: __clone() implementation | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-7498@lists.php.net to get a copy of this message | ||
ZS>> Both are valid points, and they both sound like the same problem from
ZS>> two different angles. I think that the best approach would be to
ZS>> first do an implicit clone (i.e., 'dumb' copy of all of the
ZS>> elements), and then call __clone(), even if it exists. It should
ZS>> solve both cases.
If we do this, there's no reason for __clone to have parameter - $this
should already have all the data one may need, not?
--
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.109