Paul M. Jones has submitted a 5th RFC attempt to add function autoloading to PHP, with an accompanying pull request on php-src. The proposal aims to extend PHP's existing class autoloading mechanism to cover functions. Early discussion from Bob Weinand raises a design question about namespace fallback behavior: whether the autoloader should make a second call with the global namespace name when a namespaced function lookup (e.g., Foo\bar) fails to resolve, which could reduce edge cases.
124 Impressions