Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127397 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 E2FD51A00BC for ; Mon, 19 May 2025 10:48:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1747651594; bh=AEW9DeRMn0ttEOZBFNzd1azPO3MvBivQlUrHUD6Q8Zk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=MYHeOVy8LOG0mZh9RXOMH5CEV5GSVtZXZPOeQAN2jrrjNmYuQ/PIqTLxfRjPZH4AY rq9sDi7wV0UGvgUPQdOOMpqT/cqg/JDlBzS0uIOg8i8Bpx5+3lAtERocEgWewDCRDg LVy7+KqR7Ty5trQ/5/3iWrPteDF6tvckK8s+bUjDgYfJDpUitr4wTV7aHt7y83miSS 4pXqwTuO6CwZHyH6OOQhOrW2Ba22iBzHpspE96cfGXPIo60KSAcwzJqwxGzawFz23N /OIrnhJ8jrciFb4OMW9nPr++E0ME7zX1SoBxmmKgJtm6Ply/a47A3A6zXBU2cVi7Ry StWxXHBzxvqBw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9A483180056 for ; Mon, 19 May 2025 10:46:33 +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=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (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 10:46:33 +0000 (UTC) Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-6000f2f217dso2948815a12.1 for ; Mon, 19 May 2025 03:48:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tideways-gmbh.com; s=google; t=1747651720; x=1748256520; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=AEW9DeRMn0ttEOZBFNzd1azPO3MvBivQlUrHUD6Q8Zk=; b=WJQTpPaCdvKVog5WhiC/BU2l0EPilDutQi3NSW6dp04qOlykEFgakrrejvejdeTTWh TPmcqUAc3sH7JxG/RLGG8n2gbmhgdXpMONLAlYqARwbcLidEimiAqaaOU2Bw2fbE0FZ7 NztzCNLBzbu3WbYz2KAlUrJkq88+KoAXUfg6I3DTy9W0RHZwxPxKxusQQr5p9BsiXKwh m+oCMxFaqzkmq4jU0OMn7uSn81o8JHEnkH1YVHiIEfqPb/KgbK9GQ+EjeuNM6h+B7hxK jaRT16LD1LUZEB6AgHcnjJ1giSWz55Q6mgaeCe4TZLhiL6aGJnZwTXdR/WpA5e4O+/AK DweQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747651720; x=1748256520; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AEW9DeRMn0ttEOZBFNzd1azPO3MvBivQlUrHUD6Q8Zk=; b=AFdIP5wyOn59iu+VLkXh+jTs5xkFMNkKBcMQrZOZamy8T5NjXJ3wM33dJbX/u4zGha KXV2Le4teVxW8OxsOqlOrMZq+1cyj/KhnfVd+yGJuLxx4OTEzweEJZpEzTOa7Ta1jCgS HVNTO/8htLiBIjKC4FZ8IrRCJ6PrE73I0WOqPFhh8ypBY+6FPC/RY6L8DNDO1T5Bz2E1 HTW13BbiV7FpmcjRXct+GLNlz1OSj6nDDQE/r7IfvQUiDpARZWBQO2lW3PQ4bOV4kOeP UEmwOZkj7bUWHmZQvzcKr6xAd33KwWuzDGLkGwgmtemBZYSTnhjpYup9/0R9LM/3QCmE TmFQ== X-Gm-Message-State: AOJu0Yxl5geaKq0g3zAaTsIXMQpKU7fZHZGek1OJOZzIsmQiZubjjwCT GOsJlA03f+U/FuZafD4XfQmhR1/q9OalEQ80QPoLtoci4t76GcZ9fRSVybZH9uwJRETnLNipV+T lHPSOmOKWXTefWzQjtLjDAHk0IKF9jjWj6wGtCieG1CwnxKYUjxG1Fdg= X-Gm-Gg: ASbGncvr6owqbN/YKu9VLLo6Qn7u/H1uKal6qE0UgsnfAaC8O5+lGT5v0QQyK0qMAeO rxAvzjPgBC6BXqNglG9HC0atfY7FJXiGwCe8Oo9hlLBzPI+3AbauALtwcHnYzI6QW7qh0OZcMrP NRK7viGD28wmuv9szG+zU05JJgamjPiKeLsmEGj05jPwUMzmXPLh1l73696abix50= X-Google-Smtp-Source: AGHT+IF0miPaYLl0Bb/YUtLhbJlibEHkhjx7KZzrk6CwEW3ssNkbRVXfhjL0Umcu2sLcjqibcA8AjR8+iIEEteRwDS0= X-Received: by 2002:a17:907:1b18:b0:ad2:532e:abe9 with SMTP id a640c23a62f3a-ad52d4383camr1163495166b.1.1747651719922; Mon, 19 May 2025 03:48:39 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 19 May 2025 12:48:28 +0200 X-Gm-Features: AX0GCFu8F9JltfcJ793GccbONqI9ujUqw_77nltZ4JYyGUuHM9TqAUbOHrY7BHs Message-ID: Subject: [PHP-DEV] Re: [RFC] Clone with v2 To: php internals Cc: =?UTF-8?Q?Tim_D=C3=BCsterhus?= Content-Type: multipart/alternative; boundary="000000000000f51b8e06357adfe5" From: volker@tideways-gmbh.com (Volker Dusch) --000000000000f51b8e06357adfe5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=3Ddynamic%20property%20creat= ion%20follows%20established%20PHP%20rules - https://wiki.php.net/rfc/clone_with_v2#:~:text=3DPositional%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=3Drevisions Kind Regards, Volker --=20 Volker Dusch Head of Engineering Tideways GmbH K=C3=B6nigswinterer Str. 116 53227 Bonn https://tideways.io/imprint Sitz der Gesellschaft: Bonn Gesch=C3=A4ftsf=C3=BChrer: Benjamin Au=C3=9Fenhofer (geb. Eberlei) Registergericht: Amtsgericht Bonn, HRB 22127 --000000000000f51b8e06357adfe5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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:
- We removed the behavior of = __clone locking readonly properties when the function updates them for forw= ard compatibility concerns raised in=C2=A0https://externals.io/message/127353= #127390
- Updated=C2=A0https://wiki.php.net/rfc/clone_= with_v2#design_goals mentioning there=C2=A0that consider touching __clo= ne or adding parameters a non-goal due to complexity and BC implications.
- Updated the property name of the varadic=C2=A0parameter from $up= datedProperties to $withProperties

We're still= looking for feedback on the ...variadic approach to the Syntax:=C2=A0https://wiki.php.= net/rfc/clone_with_v2#open_issues, as we only got one reply so far on t= he topic.=C2=A0

Also thanks to theodorejb for touc= hing up phrasing, correcting spelling mistakes and so on: https://= wiki.php.net/rfc/clone_with_v2?do=3Drevisions

= Kind Regards,
Volker

--
Volker Dusch
Head of Engineering
=
Tideways GmbH
K=C3=B6nigswinterer Str. 116
53227 B= onn
<= br>
Sitz der Gesellschaft: Bonn
Gesch=C3=A4ftsf=C3=BChr= er: Benjamin Au=C3=9Fenhofer (geb. Eberlei)
Registergericht: Amts= gericht Bonn, HRB 22127
--000000000000f51b8e06357adfe5--