Paul M. Jones has submitted a 5th RFC proposal to add function autoloading to PHP (RFC: function-autoloading-five-oh, PR #22337). The mailing list discussion raises concerns about namespace resolution edge cases: specifically, whether unqualified function calls in a namespace should fall back to the global namespace autoloader, and the risk of silent behavior changes when a globally-defined function accidentally intercepts calls meant for a namespaced function. Participants suggest that a declare() directive to pin namespace resolution behavior would be safer than the current proposal's approach.

3m read timeFrom externals.io
Post cover image
67 Impressions