Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124960 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 049C71A00B7 for ; Thu, 15 Aug 2024 21:32:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1723757641; bh=TLNdV7ioOnmbH77hV2JI9dGEG9LrYHD/JxOQQA7KXio=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From; b=k4WpVdmhXQrrQajXdDN9C60PkAJ2AE6KOP7hcJym0TERDL67vEzGCTZKUOKrLPaLJ VhBjh4e5PuJPLQWfPE4NuzKBVuJPAHc+UBDbbyf9XaF8AeAmjQzUPJ6RkdODDMu+4w BepJPieiL3Za4thO2tqb5R84JnmyANKpC42+sNUy4KBp7SpD9xHVVtU4Yok52t7PBD LDvzNSYTxeeH0vMpJJGtPNALnVuzsVxKuOwursTDuseAb8wdaVcAPnMmwxaarqwqHq V/khoVRxe7kAiLYh+Jbhhr7uEpgenetxFUTcmiIwUKNgW7685ebmaLh4F+HqIie1Z6 O9c7pTnkluYrQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5870C180080 for ; Thu, 15 Aug 2024 21:34:00 +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 fout8-smtp.messagingengine.com (fout8-smtp.messagingengine.com [103.168.172.151]) (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, 15 Aug 2024 21:33:59 +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 B7DB51389467; Thu, 15 Aug 2024 17:32:12 -0400 (EDT) Received: from phl-imap-09 ([10.202.2.99]) by phl-compute-03.internal (MEProxy); Thu, 15 Aug 2024 17:32:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bottled.codes; h=cc: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=1723757532; x= 1723843932; bh=TLNdV7ioOnmbH77hV2JI9dGEG9LrYHD/JxOQQA7KXio=; b=J MeVZgEqmS3YERKCVn6nNmfciFEaMpg3UnFQ/nkwc45U43m6fe1TtVcALB1//7qK8 4itTKc7cC/HgMIrqDjyEyAFr+Npx94UXNCmgcdFstahXddxvwgTAZdqsoaDp2rGy UTDYO6ftig4z0GH9j5N/d8qNoil6uoaBFEKEzVfwMNzKeLnimfS0jkv6bKj1KW8z 7ZiUIzpT7OWZBaaBkk1YDsoC9P5cc/I8ajmjxIi90CLr/208AOuYXNJFKFQWMtid d14AH1oBIDMC+GjdqdxjQyhxUJiH2AYjVXxyh3QsrFoDZL3r/mYE7XKETvbBNssr jRjQwYq/zqe7WkGDO8+vg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=1723757532; x=1723843932; bh=TLNdV7ioOnmbH77hV2JI9dGEG9Lr YHD/JxOQQA7KXio=; b=DxX4DzpLsbUy590MaU2J4QAsuPCwgFtYJ7ZWGJWWy+CF OusRNfqVnaX1SqMumM9pJDCwTPRoJHiVd6gJ8lALuvJSzFjPMmrdCh1mQTk+rJpB c5FYdVF+RCH8IHOe2aWFQD/9jemjvZ4exdTnpcah+u6sifH0KIFdBtpbWxoE8kQh /TAOCx+uBbZo2oDVWswy0vDWTtbOZoP3hKaDPRNVm3ZhhW7mEDTQnpYykn4dcAhJ SWY2vMJqJAhZ2vCxqTdrAUFewL3Vuv/5Yuf1aOo1W7gr8DsWLwpNAxpCr/3qCyxL LQDePKu+OSJXs2a20Z8aFs/hv6fzYnD9VQlnEWDwGA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddruddtiedgudeigecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepofggff fhvfevkfgjfhfutgesrgdtreerredtjeenucfhrhhomhepfdftohgsucfnrghnuggvrhhs fdcuoehrohgssegsohhtthhlvggurdgtohguvghsqeenucggtffrrghtthgvrhhnpeffge evveegtdffgfffvdfftddvheeuleegveekteffueeliedtgeekjeettdetkeenucffohhm rghinhepphhhphdrnhgvthenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehrohgssegsohhtthhlvggurdgtohguvghspdhnsggprhgtphhtthho pedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehphhhpqdhlihhsthhssehkoh grlhgvphhhrghnthdrtghomhdprhgtphhtthhopehinhhtvghrnhgrlhhssehlihhsthhs rdhphhhprdhnvght X-ME-Proxy: Feedback-ID: ifab94697:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 4027415A005E; Thu, 15 Aug 2024 17:32:12 -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: Thu, 15 Aug 2024 23:31:50 +0200 To: "Stephen Reay" Cc: internals@lists.php.net Message-ID: In-Reply-To: <845F3549-B1D7-408B-86A5-DE4CA6FE97BD@koalephant.com> References: <2716f729-4008-4f75-8412-861d8960b746@app.fastmail.com> <845F3549-B1D7-408B-86A5-DE4CA6FE97BD@koalephant.com> Subject: Re: [PHP-DEV] function autoloading v4 RFC Content-Type: multipart/alternative; boundary=501da94a38434184991b18d5c00178a3 From: rob@bottled.codes ("Rob Landers") --501da94a38434184991b18d5c00178a3 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Thu, Aug 15, 2024, at 18:18, Stephen Reay wrote: >=20 >=20 >> On 15 Aug 2024, at 22:22, Rob Landers wrote: >>=20 >> Hello internals, >>=20 >> I've decided to attempt an RFC for function autoloading. After readin= g hundreds of ancient (and recent) emails relating to the topic along wi= th several abandoned RFCs from the past, and after much review, I've dec= ided to put forth a variation of a previous RFC, as it seemed the least = ambitious and the most likely to work: >>=20 >> https://wiki.php.net/rfc/function_autoloading4 >>=20 >> Please let me know what you think. An implementation should be along = before opening it for a vote (now that I realize how important that is). >>=20 >> =E2=80=94 Rob >=20 > Hi Rob, >=20 > I like the simplicity of this, however your RFC doesn't document the c= hanges required to `spl_autoload`[1] to allow it to keep working with th= is new functionality. Ah, good catch. I've updated this and gone through other relevant functi= ons. >=20 > The same issue (unexpected additional argument) potentially affects us= erland autoloaders too, but obviously the individual authors can fix tha= t themselves (whether this would count as a BC break is not immediately = clear to me) Userland functions don't throw that error, so it shouldn't be an issue. = (You can pass as many arguments as you want to a userland function, as l= ong as there are enough of them). >=20 >=20 > Slightly tangentially, you may also want to look at a change to `spl_a= utoload_call` to accept a `SPL_AUTOLOAD_*` argument, so that it works co= nsistently. Done. Thank you Stephen for pointing out this oversight. >=20 > Cheers >=20 > Stephen >=20 > 1: https://www.php.net/spl_autoload >=20 =E2=80=94 Rob --501da94a38434184991b18d5c00178a3 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable