Re: [PHP-DEV] function autoloading v4 RFC

2024-09-10 Thread Rowan Tommins [IMSoP]
On 10 September 2024 18:59:11 BST, Rob Landers wrote: >From the beginning, I have stated that I don't see these two RFCs as competing >or mutually exclusive. > ... > If this RFC succeeds, it will simplify the design of core autoloading, > allowing us to focus expressly on the API, which I bel

Re: [PHP-DEV] function autoloading v4 RFC

2024-09-10 Thread Rob Landers
On Tue, Sep 10, 2024, at 15:28, Gina P. Banyard wrote: > On Tuesday, 3 September 2024 at 23:44, Rob Landers wrote: >> On Thu, Aug 15, 2024, at 17:22, Rob Landers wrote: >>> Hello internals, >>> >>> I've decided to attempt an RFC for function autoloading. After reading >>> hundreds of ancient (an

Re: [PHP-DEV] function autoloading v4 RFC

2024-09-10 Thread Gina P. Banyard
On Tuesday, 3 September 2024 at 23:44, Rob Landers wrote: > On Thu, Aug 15, 2024, at 17:22, Rob Landers wrote: > >> Hello internals, >> >> I've decided to attempt an RFC for function autoloading. After reading >> hundreds of ancient (and recent) emails relating to the topic along with >> severa

Re: [PHP-DEV] function autoloading v4 RFC

2024-09-09 Thread Jordi Boggiano
On 05.09.2024 22:45, Rob Landers wrote: I'm not opposed to holding off on merging the implementation if it makes sense to wait and see how Gina's proposal develops, but I also don't want to risk withdrawing my RFC and Gina's not passing for unrelated reasons; I hope that makes sense. I would

Re: [PHP-DEV] function autoloading v4 RFC

2024-09-06 Thread Jakob Givoni
On Thu, Sep 5, 2024 at 10:58 PM Rob Landers wrote: > On Thu, Sep 5, 2024, at 21:03, Jakob Givoni wrote: > > > > On Wed, Sep 4, 2024 at 9:18 PM Rob Landers wrote: > > > On Wed, Sep 4, 2024, at 17:16, Jakob Givoni wrote: > > > > 2. I've removed artificial restrictions on the constants in which all

Re: [PHP-DEV] function autoloading v4 RFC

2024-09-06 Thread Jakob Givoni
Hi Rob, On Thu, Sep 5, 2024 at 10:45 PM Rob Landers wrote: > On Thu, Sep 5, 2024, at 21:03, Jakob Givoni wrote: > > > > On Wed, Sep 4, 2024 at 9:18 PM Rob Landers wrote: > > > On Wed, Sep 4, 2024, at 17:16, Jakob Givoni wrote: > > > > 2. I've removed artificial restrictions on the constants in

Re: [PHP-DEV] function autoloading v4 RFC

2024-09-05 Thread Rob Landers
On Thu, Sep 5, 2024, at 21:03, Jakob Givoni wrote: > > > On Wed, Sep 4, 2024 at 9:18 PM Rob Landers wrote: >> __ >> On Wed, Sep 4, 2024, at 17:16, Jakob Givoni wrote: >>> 2. I've removed artificial restrictions on the constants in which all functions that take them can accept both a

Re: [PHP-DEV] function autoloading v4 RFC

2024-09-05 Thread Rob Landers
On Thu, Sep 5, 2024, at 21:03, Jakob Givoni wrote: > > > On Wed, Sep 4, 2024 at 9:18 PM Rob Landers wrote: >> __ >> On Wed, Sep 4, 2024, at 17:16, Jakob Givoni wrote: >>> 2. I've removed artificial restrictions on the constants in which all functions that take them can accept both a

Re: [PHP-DEV] function autoloading v4 RFC

2024-09-05 Thread Jakob Givoni
On Wed, Sep 4, 2024 at 9:18 PM Rob Landers wrote: > On Wed, Sep 4, 2024, at 17:16, Jakob Givoni wrote: > > > > 2. I've removed artificial restrictions on the constants in which all > functions that take them can accept both at the same time and behave > appropriately. > > > I'm not a big fan pass

Re: [PHP-DEV] function autoloading v4 RFC

2024-09-04 Thread Rob Landers
On Wed, Sep 4, 2024, at 17:16, Jakob Givoni wrote: > > > On Tue, Sep 3, 2024 at 11:49 PM Rob Landers wrote: >> 1. I've removed the BC break—the 'type' of the autoloadee will not be passed >> to the autoloader. This can allow someone to use spl_autoload for function >> autoloading if they so de

Re: [PHP-DEV] function autoloading v4 RFC

2024-09-04 Thread Jakob Givoni
On Tue, Sep 3, 2024 at 11:49 PM Rob Landers wrote: > 1. I've removed the BC break—the 'type' of the autoloadee will not be > passed to the autoloader. This can allow someone to use spl_autoload for > function autoloading if they so desire. Unless I'm missing something, the main example in the R

Re: [PHP-DEV] function autoloading v4 RFC

2024-09-03 Thread Rob Landers
On Thu, Aug 15, 2024, at 17:22, Rob Landers wrote: > Hello internals, > > I've decided to attempt an RFC for function autoloading. After reading > hundreds of ancient (and recent) emails relating to the topic along with > several abandoned RFCs from the past, and after much review, I've decided

Re: [PHP-DEV] function autoloading v4 RFC

2024-08-20 Thread Rob Landers
On Mon, Aug 19, 2024, at 20:28, Mel Dafert wrote: > On August 15, 2024 5:22:51 PM GMT+02:00, Rob Landers > wrote: > >Hello internals, > > > >I've decided to attempt an RFC for function autoloading. After reading > >hundreds of ancient (and recent) emails relating to the topic along with > >seve

Re: [PHP-DEV] function autoloading v4 RFC

2024-08-20 Thread Rob Landers
On Wed, Aug 21, 2024, at 01:53, Matthew Weier O'Phinney wrote: > > > On Tue, Aug 20, 2024, 4:56 PM Rob Landers wrote: >> __ >> >> >> On Tue, Aug 20, 2024, at 18:07, Rob Landers wrote: >>> On Tue, Aug 20, 2024, at 08:50, Rowan Tommins [IMSoP] wrote: On 20 August 2024 00:21:22

Re: [PHP-DEV] function autoloading v4 RFC

2024-08-20 Thread Matthew Weier O'Phinney
On Tue, Aug 20, 2024, 4:56 PM Rob Landers wrote: > > > On Tue, Aug 20, 2024, at 18:07, Rob Landers wrote: > > On Tue, Aug 20, 2024, at 08:50, Rowan Tommins [IMSoP] wrote: > > > > On 20 August 2024 00:21:22 BST, Rob Landers wrote: > > > >I assume you are worried about something like this passing

Re: [PHP-DEV] function autoloading v4 RFC

2024-08-20 Thread Rob Landers
On Tue, Aug 20, 2024, at 18:07, Rob Landers wrote: > On Tue, Aug 20, 2024, at 08:50, Rowan Tommins [IMSoP] wrote: >> >> >> On 20 August 2024 00:21:22 BST, Rob Landers wrote: >> > >> >I assume you are worried about something like this passing test? >> > >> >--TEST-- >> >show called only once >>

Re: [PHP-DEV] function autoloading v4 RFC

2024-08-20 Thread Rob Landers
On Tue, Aug 20, 2024, at 08:50, Rowan Tommins [IMSoP] wrote: > > > On 20 August 2024 00:21:22 BST, Rob Landers wrote: > > > >I assume you are worried about something like this passing test? > > > >--TEST-- > >show called only once > >--FILE-- > > > > >namespace test; > > > >spl_autoload_register

Re: [PHP-DEV] function autoloading v4 RFC

2024-08-19 Thread Rowan Tommins [IMSoP]
On 20 August 2024 00:21:22 BST, Rob Landers wrote: > >I assume you are worried about something like this passing test? > >--TEST-- >show called only once >--FILE-- > >namespace test; > >spl_autoload_register(function($name) { >echo "name=$name\n"; >}, true, false, SPL_AUTOLOAD_FUNCTION); >

Re: [PHP-DEV] function autoloading v4 RFC

2024-08-19 Thread Rob Landers
On Mon, Aug 19, 2024, at 23:17, Rowan Tommins [IMSoP] wrote: > On 19/08/2024 17:23, Rob Landers wrote: > > > As far as performance for ambiguous functions go, I was thinking of > > submitting an RFC, where ambiguous function calls are tagged during > > compilation and always resolve lexically,

Re: [PHP-DEV] function autoloading v4 RFC

2024-08-19 Thread Rowan Tommins [IMSoP]
On 19/08/2024 17:23, Rob Landers wrote: As far as performance for ambiguous functions go, I was thinking of submitting an RFC, where ambiguous function calls are tagged during compilation and always resolve lexically, sorta like how it works now: echo strlen($x); // resolves to global, always

Re: [PHP-DEV] function autoloading v4 RFC

2024-08-19 Thread Mel Dafert
On August 15, 2024 5:22:51 PM GMT+02:00, Rob Landers wrote: >Hello internals, > >I've decided to attempt an RFC for function autoloading. After reading >hundreds of ancient (and recent) emails relating to the topic along with >several abandoned RFCs from the past, and after much review, I've dec

Re: [PHP-DEV] function autoloading v4 RFC

2024-08-19 Thread Rob Landers
On Mon, Aug 19, 2024, at 14:03, Gina P. Banyard wrote: > On Thursday, 15 August 2024 at 17:22, Rob Landers wrote: >> Hello internals, >> >> I've decided to attempt an RFC for function autoloading. After reading >> hundreds of ancient (and recent) emails relating to the topic along with >> sever

Re: [PHP-DEV] function autoloading v4 RFC

2024-08-19 Thread Gina P. Banyard
On Thursday, 15 August 2024 at 17:22, Rob Landers wrote: > Hello internals, > > I've decided to attempt an RFC for function autoloading. After reading > hundreds of ancient (and recent) emails relating to the topic along with > several abandoned RFCs from the past, and after much review, I've d

Re: [PHP-DEV] function autoloading v4 RFC

2024-08-18 Thread Rob Landers
On Sun, Aug 18, 2024, at 11:36, Stephen Reay wrote: > > Hi Rob, > >> On 18 Aug 2024, at 04:33, Rob Landers wrote: >> >> I wouldn't consider it a BC break, no. But (ironically?), Symfony crashes >> with this change. > > > I wasn't aware of that specific code before but it's exactly the type o

Re: [PHP-DEV] function autoloading v4 RFC

2024-08-18 Thread Stephen Reay
Hi Rob, > On 18 Aug 2024, at 04:33, Rob Landers wrote: > > I wouldn't consider it a BC break, no. But (ironically?), Symfony crashes > with this change. I wasn't aware of that specific code before but it's exactly the type of issue I was talking about earlier. > Ah, good catch. I've update

Re: [PHP-DEV] function autoloading v4 RFC

2024-08-17 Thread Rob Landers
On Sun, Aug 18, 2024, at 00:40, Rowan Tommins [IMSoP] wrote: > > > On 17 August 2024 22:33:03 BST, Rob Landers wrote: > >I wouldn't consider it a BC break, no. But (ironically?), Symfony crashes > >with this change. It really shouldn't but ... > > I don't think it makes sense to say "it breaks

Re: [PHP-DEV] function autoloading v4 RFC

2024-08-17 Thread Rowan Tommins [IMSoP]
On 17 August 2024 22:33:03 BST, Rob Landers wrote: >I wouldn't consider it a BC break, no. But (ironically?), Symfony crashes with >this change. It really shouldn't but ... I don't think it makes sense to say "it breaks existing code, but it's not a compatibility break". Perhaps what you're

Re: [PHP-DEV] function autoloading v4 RFC

2024-08-17 Thread Rob Landers
On Fri, Aug 16, 2024, at 02:22, Stephen Reay wrote: > > Sent from my iPhone > > > On 16 Aug 2024, at 04:45, Rob Landers wrote: > > > > 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 long > > as

Re: [PHP-DEV] function autoloading v4 RFC

2024-08-15 Thread Stephen Reay
Sent from my iPhone > On 16 Aug 2024, at 04:45, Rob Landers wrote: > > 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 long as > there are enough of them). Hi Rob, I didn't mean the actual inte

Re: [PHP-DEV] function autoloading v4 RFC

2024-08-15 Thread Rob Landers
On Thu, Aug 15, 2024, at 20:40, Rowan Tommins [IMSoP] wrote: > On 15/08/2024 16:22, Rob Landers wrote: >> Hello internals, >> >> I've decided to attempt an RFC for function autoloading. After reading >> hundreds of ancient (and recent) emails relating to the topic along with >> several abandoned

Re: [PHP-DEV] function autoloading v4 RFC

2024-08-15 Thread Rob Landers
On Thu, Aug 15, 2024, at 18:18, Stephen Reay wrote: > > >> On 15 Aug 2024, at 22:22, Rob Landers wrote: >> >> Hello internals, >> >> I've decided to attempt an RFC for function autoloading. After reading >> hundreds of ancient (and recent) emails relating to the topic along with >> several a

Re: [PHP-DEV] function autoloading v4 RFC

2024-08-15 Thread Claude Pache
> Le 15 août 2024 à 17:27, Rob Landers a écrit : > >  > Hello internals, > > I've decided to attempt an RFC for function autoloading. After reading > hundreds of ancient (and recent) emails relating to the topic along with > several abandoned RFCs from the past, and after much review, I've

Re: [PHP-DEV] function autoloading v4 RFC

2024-08-15 Thread Rowan Tommins [IMSoP]
On 15/08/2024 16:22, Rob Landers wrote: Hello internals, I've decided to attempt an RFC for function autoloading. After reading hundreds of ancient (and recent) emails relating to the topic along with several abandoned RFCs from the past, and after much review, I've decided to put forth a var

Re: [PHP-DEV] function autoloading v4 RFC

2024-08-15 Thread Stephen Reay
> On 15 Aug 2024, at 22:22, Rob Landers wrote: > > Hello internals, > > I've decided to attempt an RFC for function autoloading. After reading > hundreds of ancient (and recent) emails relating to the topic along with > several abandoned RFCs from the past, and after much review, I've decide