Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125038 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 qa.php.net (Postfix) with ESMTPS id A15781A00BD for ; Sat, 17 Aug 2024 22:49:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1723935049; bh=j0tFN1VobvIQU8euzySL+PLRFVGPudLayJ9wUFw0ANc=; h=Date:From:To:In-Reply-To:References:Subject:From; b=K2XCGC09Vok+G4+IGNv8/boNwPBbFl95OWI4Mi6e2cmguPf/3q7qbsSIBijH807x/ q/KlCy7ALdJaU2B+6EyFwCPdyC0iKES97c63flaoeaCl3VKdQi3FRWalGSKLxbl9Ku PH1zUrIhcbpfEsmQLkuNSC8JdOaItQApdpuylpp+Syjx3VaO9nvKbzcyEBNiL2dvO4 q0l5KXrnr1uQXbshxomt2bXFWu2ZGaNtWPBe0Rvuc5AlCjmqvyIS9MjndrrWnRmh7s ywwliJsFuOF5fSdh2QwZmXLtNWICc0kNlEe7hXNFmHD4zOHZvknM4dT6vpSIn3hWSW PN7rtLyGamzyw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 85FB418003B for ; Sat, 17 Aug 2024 22:50:48 +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.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,HTML_MESSAGE, RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fout6-smtp.messagingengine.com (fout6-smtp.messagingengine.com [103.168.172.149]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 17 Aug 2024 22:50:48 +0000 (UTC) Received: from phl-compute-03.internal (phl-compute-03.nyi.internal [10.202.2.43]) by mailfout.nyi.internal (Postfix) with ESMTP id 2EC3A138D359 for ; Sat, 17 Aug 2024 18:49:00 -0400 (EDT) Received: from phl-imap-09 ([10.202.2.99]) by phl-compute-03.internal (MEProxy); Sat, 17 Aug 2024 18:49:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bottled.codes; h=cc: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=fm1; t=1723934940; x=1724021340; bh=j0tFN1Vobv IQU8euzySL+PLRFVGPudLayJ9wUFw0ANc=; b=Hzc1wQIcPhxpqStFbnkZlQytDz ARUTAWYxb1Ty8GbFNVIPV7YcJXiiNOspviJlWVqzEl8PSY9C/EzfbP7794+d/byl j04A9+2FpqG6KqW+z2srBN057FV5GNKdijry/ANUZXAw8WKN3v/l9LtUdhW0DdYV fyY/JPv9ZJmem76cQE0kfPonmYHQnehJwpZDvjIuxWyX1bJu7MzUaWG8LAejNvWw rONGm6Cm88KPaQHCwGdf70i+Rkj6RwXtB6l9gtfa/o8OBQ57FLP8UiPW7Rn7xlS7 boPNlqvG75hPqBI7yr/qd5P7rnqs5wrWjY0CexQdGNqENf0vLMfhVzYUIXoQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1723934940; x=1724021340; bh=j0tFN1VobvIQU8euzySL+PLRFVGP udLayJ9wUFw0ANc=; b=M4HQ/MZ1yoESrIUSofBEsRKuV6O5zVhlUdfpOhGUYL9I Un2tNhDWQv14ifsaW/aXqHFqsKZyP/YLxhdGTHszQcT5NWdxrCm47iAoSYhCOd+C pNXhzt3HV/cXqSaFGuxzdDXRp22YihXzUmQIvX6q9AjdA0b6QC6gX91Psk7o1ID3 uwcqGPieV7OsG4iLfAKlEJIR2TMGe31rKAlZbQp9aZJbxcNmwSgmQEBeyUvMQC63 B66i6E4A0TQUU+89zX3TOzzjKqEiJmJCGSF8USeEvvvSRvwdG0vbylwy6QLTWoxr mof+uq6IsaGKoPiumkyUC0iFpPGKQ3QMyaABoXam8w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudduuddgudegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefoggffhf fvkfgjfhfutgesrgdtreerredtjeenucfhrhhomhepfdftohgsucfnrghnuggvrhhsfdcu oehrohgssegsohhtthhlvggurdgtohguvghsqeenucggtffrrghtthgvrhhnpedtueejtd ethfeulefhtdelieduteelffdtudelheffgedtieehhfelieejgfevgeenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehrohgssegsohhtthhlvg gurdgtohguvghspdhnsggprhgtphhtthhopedupdhmohguvgepshhmthhpohhuthdprhgt phhtthhopehinhhtvghrnhgrlhhssehlihhsthhsrdhphhhprdhnvght X-ME-Proxy: Feedback-ID: ifab94697:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id DFC2E15A005E; Sat, 17 Aug 2024 18:48:59 -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 Date: Sun, 18 Aug 2024 00:48:37 +0200 To: internals@lists.php.net Message-ID: In-Reply-To: References: <94259551-80EE-41F4-9CF9-679B79B5EA49@koalephant.com> Subject: Re: [PHP-DEV] function autoloading v4 RFC Content-Type: multipart/alternative; boundary=5c383f566ce147df80d31ed304eaf268 From: rob@bottled.codes ("Rob Landers") --5c383f566ce147df80d31ed304eaf268 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Sun, Aug 18, 2024, at 00:40, Rowan Tommins [IMSoP] wrote: >=20 >=20 > On 17 August 2024 22:33:03 BST, Rob Landers wrote: > >I wouldn't consider it a BC break, no. But (ironically?), Symfony cra= shes with this change. It really shouldn't but ... >=20 > I don't think it makes sense to say "it breaks existing code, but it's= not a compatibility break". >=20 > Perhaps what you're saying is "it's only a BC break for code that's no= t following best practices"? >=20 > But more relevant than whether you think the current code is "correct"= is the fact that a) it will need to be changed to work with your propos= al; and b) the change is simple and can be done in advance.=20 >=20 > So the RFC should acknowledge this BC break, but could argue that it's= small enough to include in a minor version. This is actually really com= mon - RFCs that introduce a new global function often acknowledge that i= t would break existing userland functions with that name. Between that a= nd obviously serious BC breaks like *removing* a function, there's a big= grey area where we have to make a judgement call. >=20 > Regards, > Rowan Tommins > [IMSoP] >=20 Hey Rowan, Ah, that's a good tip and point. Thank you. I'll update the RFC! =E2=80=94 Rob --5c383f566ce147df80d31ed304eaf268 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
On Sun, Aug 18,= 2024, at 00:40, Rowan Tommins [IMSoP] wrote:


On 17 Aug= ust 2024 22:33:03 BST, Rob Landers <rob@bottled.codes> wrote:
>I wouldn't consid= er it a BC break, no. But (ironically?), Symfony crashes with this chang= e. It really shouldn't but ...

I don't thin= k it makes sense to say "it breaks existing code, but it's not a compati= bility break".

Perhaps what you're saying i= s "it's only a BC break for code that's not following best practices"?

But more relevant than whether you think the= current code is "correct" is the fact that a) it will need to be change= d to work with your proposal; and b) the change is simple and can be don= e in advance. 

So the RFC should ackno= wledge this BC break, but could argue that it's small enough to include = in a minor version. This is actually really common - RFCs that introduce= a new global function often acknowledge that it would break existing us= erland functions with that name. Between that and obviously serious BC b= reaks like *removing* a function, there's a big grey area where we have = to make a judgement call.

Regards,
Rowan Tommins
[IMSoP]


Hey Rowan,

Ah, that'= s a good tip and point. Thank you. I'll update the RFC!
=E2=80=94 Rob
--5c383f566ce147df80d31ed304eaf268--