Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111791 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 68606 invoked from network); 2 Sep 2020 19:36:42 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 2 Sep 2020 19:36:42 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6F7F618053F for ; Wed, 2 Sep 2020 11:41:38 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,HTML_MESSAGE, SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-mahalux.mvorisek.com (mail-mahalux.mvorisek.com [77.93.195.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 2 Sep 2020 11:41:37 -0700 (PDT) Received: from 22599fbbce16 (10.228.0.226) by mail-mahalux.mvorisek.com (10.228.0.4) with Microsoft SMTP Server (TLS); Wed, 2 Sep 2020 20:41:36 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_e076759b5aa7ceca807d27df30fc4949" Date: Wed, 02 Sep 2020 20:41:35 +0200 To: PHP internals Message-ID: <2868e0ed4e7ebc09b568471c913079516f93fd2fc95e97b0ffea192db1e04275@mahalux.com> X-Mailer: SAP NetWeaver 7.03 Subject: Pass source object to clone like __clone($origThis) From: vorismi3@fel.cvut.cz (=?UTF-8?Q?Michael_Vo=C5=99=C3=AD=C5=A1ek_-_=C4=8CVUT_FEL?=) --=_e076759b5aa7ceca807d27df30fc4949 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8; format=flowed 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 --=_e076759b5aa7ceca807d27df30fc4949--