Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111817 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 99385 invoked from network); 3 Sep 2020 14:37:01 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 3 Sep 2020 14:37:01 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 13EB4180511 for ; Thu, 3 Sep 2020 06:42:10 -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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,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 mail-ot1-f47.google.com (mail-ot1-f47.google.com [209.85.210.47]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 3 Sep 2020 06:42:09 -0700 (PDT) Received: by mail-ot1-f47.google.com with SMTP id v16so2706989otp.10 for ; Thu, 03 Sep 2020 06:42:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6ZNnXn5Nfr3XML/bAQR67jc9w7jcoWYtVWBnDTFrOL8=; b=K+YWcQMJNHOV+3mGIVyDRizLxSwpU9IoeY7bjt4XwPWu+UqFalllu8yV78Jw2ScXxD TmhPGY5oECSkb4Vas1DTfd2SECgWjGfNe2UubP9/qIHpeaOjv6HsbGATJV/MwL04mONM bn+2ZSigDTpBrSDNUH2UA3ndzNJjqOHzyusmf3ydd3m+9FX78OAx7stCZGpL5WJBHoFc dvkpQgjSCpBULOoHPMbwgxXAlYcubnL4g5PAE0AB9dzGRxpFAbXsD3d2VX6s1aRK5sAB 8Yw8Wp/x+m7sylkdCSLQEquUDwPk2/z38HH4YxVI9PgpQe3CDwEUG5JeJR3VWPlcaC3t mVnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6ZNnXn5Nfr3XML/bAQR67jc9w7jcoWYtVWBnDTFrOL8=; b=JHP5zxr1Z5XNlKuJhPATR7FPKXY1vuM/zxIhRrIQw/AIFHg+R2qefMWmXDONjN01Vl +CaKcQ8zG68Icx6XLrMZqGZ0c9YYEOUNdMw7woMj4Vvxu5ASbBQWGFXlB6D3TimAwfyf GEZr88vhk4ng9x0tAUfBXlC0HTiFRfIMsvrmgO+SUPvzckp7hp+4T7wqWmLf9udgO68e N+iSFyup5VoIplFHFH2teGAUQJzaaDoNzkaMIuiWScV1Iuy2HWJunOhtshEAWpjVa9O7 h6jndK4DI9nYlwUZb7sVBBpxclvymJfxwgtnt2LvGiYJlGh386kEDdr/69QqCuEwfhaw MGpA== X-Gm-Message-State: AOAM530GkNOuq/hJsjE11nGql0uPydVvRZkGGmPXorYCmA4Econ8WPkm NLiOSzptW6lbFF+R2ixU2dIsQ8lte9+QXz5uK44= X-Google-Smtp-Source: ABdhPJwNKKPu768ywB0xASIdenEmNP6bNQ0MANhmhAPWuzcaE+Qg4FjNWJO+Jd4eHNilnPaMCDMtx0Ib4rfbaksMugI= X-Received: by 2002:a9d:7745:: with SMTP id t5mr1674796otl.114.1599140525835; Thu, 03 Sep 2020 06:42:05 -0700 (PDT) MIME-Version: 1.0 References: <2868e0ed4e7ebc09b568471c913079516f93fd2fc95e97b0ffea192db1e04275@mahalux.com> In-Reply-To: Date: Thu, 3 Sep 2020 10:41:52 -0300 Message-ID: To: =?UTF-8?Q?Pedro_Magalh=C3=A3es?= Cc: =?UTF-8?B?TWljaGFlbCBWb8WZw63FoWVrIC0gxIxWVVQgRkVM?= , PHP internals Content-Type: multipart/alternative; boundary="000000000000fd0b9705ae68ea83" Subject: Re: [PHP-DEV] Pass source object to clone like __clone($origThis) From: david.proweb@gmail.com (David Rodrigues) --000000000000fd0b9705ae68ea83 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I don't see problem to allow modify the original object, once that you are doing it by using a new argument, and not the $this itself. Em qui, 3 de set de 2020 08:49, Pedro Magalh=C3=A3es escr= eveu: > On Wed, Sep 2, 2020 at 7:41 PM Michael Vo=C5=99=C3=AD=C5=A1ek - =C4=8CVUT= FEL < > 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 clonin= g > operation could be the cause for a lot of confusion. If we had a proper w= ay > to make it read-only I wouldn't mind, but as is, it doesn't sound like a > good idea. > --000000000000fd0b9705ae68ea83--