Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127353 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 1FAB31A00BC for ; Wed, 14 May 2025 13:04:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1747227741; bh=KA449yH9arjqgkSRMNyqYmK0F24RC5cH0C2tdAlYylw=; h=From:Date:Subject:To:Cc:From; b=D+hyTUhsn5bJVwUMKOmcx8otREYl99uHi6KvN1XooEddh/X67WOImEFqDTq4HtdUk ISBcW+OBsJ5kiBSq7qWuJwSet5EHVTx7tZDf6j3xxbLHCDhPctYsxJ1ONSG18tgqrc PrmlMDC9Ig/OLtfz9HLL2+xMj+vL1mS4zhRpHrul+8/+YvCBEO0f73AUNPVAYC1LEA b8ydc2K+QAhyQETRigcEIZDxsVUGzx2mmqlvVD8cGptmaXMpM+qD9m60t34L1NnpvZ HVdf15Y9SzqCwyBknylsyjQL3ndv1EbL248CSmh2QTl18X60c+sR4QofunjnRi6a4Z t+rbbnvxyx4EQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2344218038F for ; Wed, 14 May 2025 13:02:20 +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_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (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 ; Wed, 14 May 2025 13:02:09 +0000 (UTC) Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-ad24b7e0331so613449666b.0 for ; Wed, 14 May 2025 06:04:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tideways-gmbh.com; s=google; t=1747227859; x=1747832659; darn=lists.php.net; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=KA449yH9arjqgkSRMNyqYmK0F24RC5cH0C2tdAlYylw=; b=JXsnDANaQCQq+pQG92NfUJ1VFft4kplfZOsuNj/+GOaxbZpL296mDCEr5P41KSat01 5G1CyP5LruTeRHSZUmP8FwUcc/tVGSYQS/ncbiTmwTcK0t/xXSz9KBHD4O0sr+GrZ79J lVsfUUtFIy5g+cMZfuKl+FIjukxVpddVtiamrL659PbwUJ9ZCdo8Y1ShSy9RVRsUwwBa obPnObWMXCuLShpyO94Xzvb7cVlO/Dy0laYQXMI99MfEQaN2NoplNrwJHrD3ez9MwQ1a rx8iKrroLUZY2oeU68KhY/UH/BXmQlmhJR+m9jSbA2A8HvHDASNgioqyfTVarpkJ24ST +PDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747227859; x=1747832659; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=KA449yH9arjqgkSRMNyqYmK0F24RC5cH0C2tdAlYylw=; b=To4sVgl3O2GfPF5pOgyuAxqMeXQkjvtScUOfTgj95e8gYzV9T95Mn5KBIOQ+sx0nA5 7ZUtfo+AaT5mlufSJBnPqgp+cXkN+X35KqKxa+NIVnR4P+RoY5bPQt/YswPCohe7VIDs txDooQZAF27JZC6WwXKho9cQdasFQUBLreqOtFt0h5DGNsML7ZlzKZIjTEfE8lYDkbPh X4ID6UPc7a2SzPq+0CkrLDxISerYxcmn5K9LHZ5OOnWbBMEs3i9NNhaNX0LxXZPclKpD LceJ1eiOtNLlkrzBDLb1jaFK+9OJsqCTLEJjDbLnMe/7n9f7NXmU+bOcRR2oTTkojdF0 uPgQ== X-Gm-Message-State: AOJu0YwHncfGWQ5017zB35e9XeaucWHKe2qP8u3TQQLYxfW403xoScCD 54H8+2cf3z9jfxc5LTUTVQRbF1IsQZKpHXG49MdBSAvlIFxohQv1X5eypIFeOX5HOakj7r2GlZg iklZF2HovjvW2LiyErhEtW47ztVo5mlsouLQ/kaNIsXrIwfS7UTQ= X-Gm-Gg: ASbGncvrujw/h8tRR+Oa10xzMqjFi9Hu8q91Gpg8l+ffrtjBDcBJXbJ2/PJYWSzz6Rq 45/sg2y/XjtHgZyFjfKdk7vMQLFFvsYEKImgayV6e19Si3O56sggFCuuMNCvrO/swmOgkXc8MIP 5cWg7dfseOIAz3aT1WsrbPZBxkuCkwm7cEGBhi5wNW8FkqhA6GF9cvOqFTZOYKYA== X-Google-Smtp-Source: AGHT+IFI94nbHR0cUkPCmvqDQ2LfIsMFHBuOdY1HBWxkt6Cfsdy3uyRDoAPQH7hoyJAmHWehTjmThumDbPE+BAwCrVk= X-Received: by 2002:a17:907:a0d1:b0:ad2:2727:f482 with SMTP id a640c23a62f3a-ad4f75156c1mr314405466b.55.1747227857977; Wed, 14 May 2025 06:04:17 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Wed, 14 May 2025 15:04:06 +0200 X-Gm-Features: AX0GCFutFDUvBY_bXMVMTciSX_NKbVZgUz9yyXHeX9ZVkOm-3Dkvhi9b-5Vkwy8 Message-ID: Subject: [PHP-DEV] [RFC] Clone with v2 To: php internals Cc: =?UTF-8?Q?Tim_D=C3=BCsterhus?= Content-Type: multipart/alternative; boundary="000000000000d130910635182f66" From: volker@tideways-gmbh.com (Volker Dusch) --000000000000d130910635182f66 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi internals, A couple of weeks ago, we stumbled over the fact that the original "clone with" RFC was abandoned and thought it would still be useful to suggest a trimmed down version of the proposal. The main goal of this RFC is to propose a lightweight, low friction implementation of this feature to satisfy the couple of use cases we see and "round out" PHP in how it handles cloning, especially around read-only-properties. https://wiki.php.net/rfc/clone_with_v2 We are actively looking for some feedback on https://wiki.php.net/rfc/clone_with_v2#open_issues, but of course all points are welcome. If this turns out to be more complex than anticipated, for some reason, specifically around syntax or BC implications, we'd rather not add this at all. A preliminary implementation that shows how small the change set needs to be exists at https://github.com/TimWolla/php-src/pull/6 Kind Regards, Tim and 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 --000000000000d130910635182f66 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi internals,

<= div>A couple of weeks ago, we stumbled over the fact that the original=C2= =A0"clone with" RFC was abandoned and thought it would still be u= seful to suggest a trimmed down version of the proposal.

The main goal of this RFC is to propose a lightweight, low friction = implementation=C2=A0of this feature to satisfy the couple of use cases we s= ee and "round out" PHP in how it handles cloning, especially arou= nd read-only-properties.

<= div>
We are actively looking for some feedback on=C2=A0https://wiki.php.n= et/rfc/clone_with_v2#open_issues, but of course all points are welcome.=

If this turns out to be more complex than anticip= ated, for some reason, specifically around syntax or BC implications, we= 9;d rather not add this at all.

A preliminary impl= ementation that shows how small the change set needs to be exists at=C2=A0<= a href=3D"https://github.com/TimWolla/php-src/pull/6">https://github.com/Ti= mWolla/php-src/pull/6

Kind Regards,
= Tim and Volker

-= -
--000000000000d130910635182f66--