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] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php