Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127399 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id 28BD71A00BC for ; Mon, 19 May 2025 13:30:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1747661299; bh=UuaN3qmDf8Zwz6bCObs7RcAPfb1TcE1f+zgnr7+L8RQ=; h=Date:From:To:In-Reply-To:References:Subject:From; b=hwiLr7FUwbsVYST7j1Nz9Qp1IwmTwEBSebk3rg3wh7/1bezr2urtp4lVT9vrTfj20 ZH3CLAzBMRqJw9aDW8PcgfGA0t75pJM6tTN3WB2ACqnTH7KIwR6VbSmIXxjKHMhhhl 66IqAjS+EulxzjEeQxiz0KbwNbnf2qWBY0rLinH08I9BtM0+YtLe6p5xIvWxrNqHvN 8Px4wCfa/Hm5WeIrKDha0nfh7YJNgyUSEDjOAC6ORs0H5bE/1neaJrTUu/VPeBN3Hh V3UX7Yan2obJn1GVp+iyWnDmkegs+OwpZbRjhxwFrgaLC232GTfqs0MZ5QDPsCYg3j flwQzPeF1xfrA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8738E180061 for ; Mon, 19 May 2025 13:28:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-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,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from fhigh-a3-smtp.messagingengine.com (fhigh-a3-smtp.messagingengine.com [103.168.172.154]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 19 May 2025 13:28:17 +0000 (UTC) Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfhigh.phl.internal (Postfix) with ESMTP id 47B371140115 for ; Mon, 19 May 2025 09:30:26 -0400 (EDT) Received: from phl-imap-02 ([10.202.2.81]) by phl-compute-10.internal (MEProxy); Mon, 19 May 2025 09:30:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to; s=fm3; t=1747661426; x=1747747826; bh=Zl6EZrF6vdoEhv4MrBpqh qZnKTq7oGwZH3/3o729ucI=; b=e6s7+NBj4C2DhgvrqBoPr54OlfaJY0A4QB455 gVL9BRA6e2Nk7+x7S9K3Xf4IUEfMJKzwQs1Cp7gAIrMvGAGbF124ChSOreQ48Rh+ d8LdmPcvRzPL66x1S3lbkEiy0amHhoCYinldDJgOijf/uTdF+tEZVWiCLn4DLGvM Pt07XkvUzX0aGWdW41MuAb60Fo5uy8Dk5k1nPBH/Rh3F0KkJ5kmqNdJCES/qA46t 25ojhWXrv+JeTXkV7HYJ9OyqaLW0ECMhFsOjxSRAzxS9aKhJg9Q4iHcrqVbqQuFl 4ty801YFtwfxn8mNmqRpL870rkXq6r3vDiXQH2QeAZ5lBXf4Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1747661426; x=1747747826; bh=Z l6EZrF6vdoEhv4MrBpqhqZnKTq7oGwZH3/3o729ucI=; b=k4sArZrT+AIxMcZ0E 65eLwlXM4fA32ebccIkcZPi/K/U+/VOT2KUfQl6ssv4tD4vO9IAYWUUF5KSWWGlT AFezZdq4n27jkQe8b6bexzHr5CZUQISluEbXPBtpQ4mK5RPn/fgG/062LadG9h2V sSUxTt0J6poYNb/7Kanc5bDnLTJuK1SywS9NJ17m8Lx2aPMMhYji3/0SgivXRuFF D9j7fMXKQKJAoZBoaIi2v0+SjCJXyb11BcgegYean6kjZ0N+HxOJ/+2xxG8inrdv 7MjzSeBpqzJseYReIcv8W+7wA7za6CwWT222w7ogjuG8lvdHNx2xHDbT2KzOFuJE 8MHlQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdefvdduheduucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepofggfffhvffkjghfufgtgfesthejredtredt tdenucfhrhhomhepfdfnrghrrhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrh hfihgvlhguthgvtghhrdgtohhmqeenucggtffrrghtthgvrhhnpeetjeejjeelhfffueev keelieeiueejfefhvedtveffledtleduheeifffghefhudenucffohhmrghinhepphhhph drnhgvthdpvgigthgvrhhnrghlshdrihhonecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehmrghilhhfrhhomheplhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtoh hmpdhnsggprhgtphhtthhopedupdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehi nhhtvghrnhgrlhhssehlihhsthhsrdhphhhprdhnvght X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 9E532700060; Mon, 19 May 2025 09:30:25 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 X-ThreadId: T11f5e8d0f54ccf80 Date: Mon, 19 May 2025 08:30:05 -0500 To: "php internals" Message-ID: In-Reply-To: References: Subject: Re: [PHP-DEV] Re: [RFC] Clone with v2 Content-Type: text/plain Content-Transfer-Encoding: 7bit From: larry@garfieldtech.com ("Larry Garfield") On Mon, May 19, 2025, at 5:48 AM, Volker Dusch wrote: > Hey everyone, > > Thank you for the participation so far, since the start of the > discussion, from feedback on and off list, I've added a couple of > examples: > > - > https://wiki.php.net/rfc/clone_with_v2#:~:text=dynamic%20property%20creation%20follows%20established%20PHP%20rules > - https://wiki.php.net/rfc/clone_with_v2#:~:text=Positional%20parameters > - We removed the behavior of __clone locking readonly properties when > the function updates them for forward compatibility concerns raised in > https://externals.io/message/127353#127390 > - Updated https://wiki.php.net/rfc/clone_with_v2#design_goals > mentioning there that consider touching __clone or adding parameters a > non-goal due to complexity and BC implications. > - Updated the property name of the varadic parameter from > $updatedProperties to $withProperties > > We're still looking for feedback on the ...variadic approach to the > Syntax: https://wiki.php.net/rfc/clone_with_v2#open_issues, as we only > got one reply so far on the topic. > > Also thanks to theodorejb for touching up phrasing, correcting spelling > mistakes and so on: https://wiki.php.net/rfc/clone_with_v2?do=revisions > > Kind Regards, > Volker For positional parameters, I don't see any way that they'd work or do what someone expects. So why not just block them entirely instead of relying on dynamic properties to warn-but-sorta-work? --Larry Garfield