Re: [DRAFT] [RFC] Function autoloading

From: Date: Fri, 30 Aug 2013 07:08:50 +0000
Subject: Re: [DRAFT] [RFC] Function autoloading
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
> If they're already namespaced, what prevents one to put it in a class
> and use good old PSR-compatible loading?
>
> Nothing, really... Just countering your specific premise.


> > Those function calls would only kick in if the function/constant wasn't
> > already defined, which will be the exception case, so perf isn't a
> > strong argument.
>
> Not according to the code I see in the patch. There I see 2 func calls
> (among other things) before the hash is even looked up.
>
> Well, the patch needs work obviously.  I'm living in a magical world where
that's already been fixed. :)

-Sara


Thread (72 messages)

« previous php.internals (#68700) next »