Pass source object to clone like __clone($origThis)

From: Date: Wed, 02 Sep 2020 18:41:35 +0000
Subject: Pass source object to clone like __clone($origThis)
Groups: php.internals 
Request: Send a blank email to internals+get-111791@lists.php.net to get a copy of this message
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 With kind regards / Mit freundlichen Grüßen / S přátelským pozdravem, Michael Voříšek

« previous php.internals (#111791) next »