Re: __clone() implementation

From: Date: Mon, 02 Feb 2004 19:38:14 +0000
Subject: Re: __clone() implementation
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-7484@lists.php.net to get a copy of this message
At 01:26 PM 2/2/2004 -0500, Adam Bregenzer wrote:
On Mon, 2004-02-02 at 13:18, Stephane Drouard wrote: Another idea for case 1 could be to be able to call parent::__clone even if the class does not implement it and have the bit for bit copy (but just for the base class). I also think a default __clone method that does a bit for bit copy would be a good thing. What if I do $copy = clone $some_obj; when $some_obj's class and all its parent classes do not implement __clone? This could be important if someone were to write proper php5 code that used classes written for php4.
That already happens today (or it should). Andi

« previous php.internals (#7484) next »