Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127655 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 216C51A00BC for ; Thu, 12 Jun 2025 09:11:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1749719359; bh=P2eLbP4/1kaoHCzX0gqeAYdYYrfgsm2KzJC6tkrOaRI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mITv8k4HfBRU089pz3LswEzEOmF9LiNjIvUwUvFJtVjJtTg9GJ6RGsbDyuH6oapsj +ruoy8mqq2qAZwpmeM69+xZyr3oHPqUvd7DVJ4/oz6kT7z//4B7GRtvzXM2wwgG11b ABe3c7By5iHxwz0AnTgFr7c7U0kk59oaHuhJiB83eoFx8slAwEVeEXrOnikYQYlLpk cIITaLQRiC57r6ge6dpwgkxV2/1gMnF2fgNx6W7FxOgNe4O9lzSlTaOS/k67s2dVv0 xF5740IGdafLH3WZ+OoItuek2rdVuiMMQdVXSUh6ROkaX/Gsfo95cdyv57SAwl0Cmz NvqG2/+XJG8Gg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4CCD6180047 for ; Thu, 12 Jun 2025 09:09:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) 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_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (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 ; Thu, 12 Jun 2025 09:09:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1749719476; bh=pow/kLpEt8KgdIovKAAVl7cdLIDgisT9VpYyGfqG6yg=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type:from:to:cc:subject:message-id; b=JNxr8rRGv761tCdZ6tnBwdOp20jB/BdFlG/mm6+gou19yqIvo6Gr4lFfCKT+EYMHV QZ/DuhUWDFhDY0jhUMiLi7RP591wTjyb0h6KafgflzBNO8GVnumfsM+wz/XC71fO7S 3G6f/Vm5oRo8Xs8Ga2MILm/1LMfcDKXoUWMe97uQC9xz4+3+NYAIVQVn79Z9MZwwGg 0BCsEwqPfZnt0u9V23wTNgr2fpgBbWVkH64wd31kEY1TQFEZoRFJY1+zu3ApIwqRKs sVSDNh5VZb6VGbyuv/6KgMlqG+Z6FKH91vS3PZpphvwk7yMFABValTi2zpJePnmWR2 nzjT/EJeasZnA== Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Thu, 12 Jun 2025 11:11:16 +0200 To: Andreas Hennings Cc: Volker Dusch , Larry Garfield , php internals Subject: Re: [PHP-DEV] [VOTE] Clone with v2 In-Reply-To: References: Message-ID: <79ebdfd4c6961e10b0517423a210026d@bastelstu.be> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi Am 2025-06-11 21:37, schrieb Andreas Hennings: > While these are valid arguments, I don't know that the other thread > had enough time to settle and agree on this array syntax. > The last time I looked at it, it still had the named arguments. > (Unfortunately I don't have permissions to see the RFC edit history, > so not sure how long ago this was changed.) Volker announced the change in the discussion thread on May 26 (https://news-web.php.net/php.internals/127460, 16 days ago). However the “named parameters vs array” question was an open question since the very beginning of the discussion (May 14, 28 days ago) where we specifically asked for opinions, asked again on May 19 (23 days ago) and after we only received an opinion from Larry, I stated my own one on May 21 (21 days ago), which Theodore then agreed with. One June 2 (9 days ago), Volker announced the intent to open the vote (after 5 days without any further emails, https://news-web.php.net/php.internals/127539) for June 4 (7 days ago). There were 21 days of discussion, for 9 of those days the change was in the RFC text, for 14 of those the change could've been anticipated and for 21 of those folks were able to add their opinion. I'd say this is plenty of time for the “syntax to settle”. > In the other thread I proposed an alternative where instead of passing > the original object as a parameter to __clone(), we are passing the > values from the "clone with" call. > This would be more suitable when __clone() is called before the values > are assigned. Yes, this is listed in the Future Scope section of the RFC. >> So from my perspective, there was no active discussion going on as >> nobody else spoke up for a week and nothing changed with Nicolas, >> admittedly regrettably timed, last email. Which we also answered in >> detail. So I fail to see how this problematic. > > I don't see Nicolas' last email from 4 Jun being answered. This email arrived after the RFC vote was opened and besides clarifying some points of Nicolas' earlier email (which I answered) only mentioned that I did not diligently list all possible follow-ups in the “Future Scope” section. However the future scope section is non-normative anyways, details are figured out in the follow-up RFC if / when it arrives. Passing both the original object and the $withProperties array would be possible, as I mentioned in the discussion. > So, this does indeed feel rushed. We carefully considered all the opinions voiced in the discussion and are confident in the design of the RFC. Every RFC author has their own vision and RFCs are naturally opinionated, building something we don’t believe should be in PHP or would not use ourselves would not make sense. Best regards Tim Düsterhus