Re: Pass source object to clone like __clone($origThis)

From: Date: Thu, 03 Sep 2020 11:06:00 +0000
Subject: Re: Pass source object to clone like __clone($origThis)
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-111811@lists.php.net to get a copy of this message
On Wed, Sep 2, 2020 at 8:42 PM Michael Voříšek - ČVUT FEL < vorismi3@fel.cvut.cz> wrote: > Hi, please look at > > > https://stackoverflow.com/questions/63675888/get-original-source-instance-in-clone > > > do you have anything against updating PHP to pass "instance before > cloned" to any __clone call from php? > > no BC - user may accept this extra argument or declare function > __clone() without any param like now > Could you please provide some more information on what the intended use-case is? I'm not opposed to this change, but I also don't understand why it is needed. Regards, Nikita

« previous php.internals (#111811) next »