Re: Idea: Function autoloading using dummy namespaces

From: Date: Mon, 18 Jul 2016 15:07:43 +0000
Subject: Re: Idea: Function autoloading using dummy namespaces
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-94555@lists.php.net to get a copy of this message
On 18/07/2016 16:04, Michał Brzuchalski wrote:
I was thinking on passing some context information into autoload about context, eg.: class | funtion. Wouldn't it be satisfiable information for autoloader? IMHO it would be the easiest way to satisfy autoloader to find proprietary implementation.
Yep, that's how previous suggestions have worked, e.g. https://wiki.php.net/rfc/function_autoloading There are a few complexities around making the callbacks compatible (some already take a second argument for a different purpose), but the above RFC takes care of those. Regards, -- Rowan Collins [IMSoP]

« previous php.internals (#94555) next »