Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111812 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 84082 invoked from network); 3 Sep 2020 12:44:01 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 3 Sep 2020 12:44:01 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4BB6A180532 for ; Thu, 3 Sep 2020 04:49:09 -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=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from outbound2.mail.transip.nl (outbound2.mail.transip.nl [149.210.149.73]) (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 ; Thu, 3 Sep 2020 04:49:08 -0700 (PDT) Received: from submission13.mail.transip.nl (unknown [10.103.8.164]) by outbound2.mail.transip.nl (Postfix) with ESMTP id 4Bhzc24wJgzYcvg for ; Thu, 3 Sep 2020 13:49:06 +0200 (CEST) Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) by submission13.mail.transip.nl (Postfix) with ESMTPA id 4Bhzbt1LCBz1yBc for ; Thu, 3 Sep 2020 13:48:58 +0200 (CEST) Received: by mail-wm1-f41.google.com with SMTP id q9so2560588wmj.2 for ; Thu, 03 Sep 2020 04:48:58 -0700 (PDT) X-Gm-Message-State: AOAM532LDIjf93x+uahdb3isnnfBIuGOM0uuzEoCVzOpnUjnj3cJ1icM afuXSx3/nugAM70V6A729mTVpNQMIkEsJB4xVf4= X-Google-Smtp-Source: ABdhPJx4RjFVa9i22Jx8qGSg+qZ1JqN6V0r5D1a/9tc8Bx/qY7i2TP39Z2t/TEzgbnyXGVfc4t8Zn2X7p5ng6gy90K4= X-Received: by 2002:a7b:c958:: with SMTP id i24mr2190912wml.50.1599133738047; Thu, 03 Sep 2020 04:48:58 -0700 (PDT) MIME-Version: 1.0 References: <2868e0ed4e7ebc09b568471c913079516f93fd2fc95e97b0ffea192db1e04275@mahalux.com> In-Reply-To: <2868e0ed4e7ebc09b568471c913079516f93fd2fc95e97b0ffea192db1e04275@mahalux.com> Date: Thu, 3 Sep 2020 12:48:47 +0100 X-Gmail-Original-Message-ID: Message-ID: To: =?UTF-8?B?TWljaGFlbCBWb8WZw63FoWVrIC0gxIxWVVQgRkVM?= Cc: PHP internals Content-Type: multipart/alternative; boundary="00000000000067a0a105ae6756aa" X-Scanned-By: ClueGetter at submission13.mail.transip.nl DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=transip-a; d=pmmaga.net; t=1599133739; h=from:subject:to:cc: references:in-reply-to:date:mime-version:content-type; bh=auKYaZnmdT/Y9kVgmnlcT675L8BYa6NaB3NLwkAXVMI=; b=Vv50PsYrJ+oBMr9pQ+o0jvnCt7FmRbOlL5j7Ca2lCgfkFcobW2/jPpnSLv7fVExwG3OzaA deFGQut5ScmMbtAKmImtqlDZgOzIcKraTxqyCRwb3y5o1eVaJ46qmKd94H1ukfBLh32FqG +UrWwdocq3bt9MS8apVtJDEpoqbAzkhcjDpJYN10ozGm4e3seboPZPZ3ZT1Vpn5E4DUfS6 nM7J5pqxIvq5kT7+S4AbiwgMKudSFnzuRLKiA5Ywcf5NS63RyKIjtzSNMB8DtesHhuwzI3 5UJDKgbOC4WBjYbkdnaRWHOoMRbHgzkiHCMDPUg18ODtPm7uECAt+60K5LSFLQ== X-Report-Abuse-To: abuse@transip.nl Subject: Re: [PHP-DEV] Pass source object to clone like __clone($origThis) From: mail@pmmaga.net (=?UTF-8?Q?Pedro_Magalh=C3=A3es?=) --00000000000067a0a105ae6756aa Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Sep 2, 2020 at 7:41 PM Michael Vo=C5=99=C3=AD=C5=A1ek - =C4=8CVUT F= EL < vorismi3@fel.cvut.cz> wrote: > do you have anything against updating PHP to pass "instance before > cloned" to any __clone call from php? > Yes, I think that allowing the original object to be modified by a cloning operation could be the cause for a lot of confusion. If we had a proper way to make it read-only I wouldn't mind, but as is, it doesn't sound like a good idea. --00000000000067a0a105ae6756aa--