Paul M. Jones has submitted a 5th RFC attempt to add function autoloading to PHP (RFC: function-autoloading-five-oh, PR #22337). The mailing list discussion raises key design concerns: whether the autoloader should make a second call with the global namespace when a namespaced function isn't found, potential for namespace hijacking (e.g., a global function silently overriding a library's unqualified function call), and whether a `declare()` directive at the file level should be required to explicitly control how unqualified function names are resolved. Jones has shared a draft PR exploring the `declare()` approach and is soliciting community feedback.

5m read timeFrom externals.io
Post cover image
150 Impressions