Re: __clone() implementation

From: Date: Fri, 23 Jan 2004 11:42:54 +0000
Subject: Re: __clone() implementation
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-7292@lists.php.net to get a copy of this message
Marcus, > you're right $that must be available in the derived __clone(). You will solve one problem: being able to call parent::__clone(), but it won't remove the constraint on derived classes (declaring members) to implement __clone() when one of its parents implements it. This is just to limit risk of bugs, especially when you change a class implementation (not its interface) that now requires __clone() in a class that is the parent of others. Regards, Stephane

« previous php.internals (#7292) next »