Re: Autoloading functions/consts without a performance impact

From: Date: Fri, 03 Jan 2020 15:31:25 +0000
Subject: Re: Autoloading functions/consts without a performance impact
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-107977@lists.php.net to get a copy of this message
> If the call to foo() is simply treated equivalently to a call to A::foo(), > then this may have some quite surprising behavior: > > If A::foo() is an instance method, then this call to foo() will inherit $this, > which is something that normally does not happen with free-standing function calls. > Possibly this would need a new call type that enforces that the method is actually static? I do like this approach. A new call opcode would make sense for that. It won't help for internal functions or their polyfills such as mb_strlen(), etc., so autoloading functions would still make some sense if that approach was taken.

« previous php.internals (#107977) next »