On 17/06/2026 01:09, Paul M. Jones wrote:
Hi all,

This is (by my count) a 5th attempt at adding function autoloading to PHP.

- RFC: https://wiki.php.net/rfc/function-autoloading-five-oh
- PR:  https://github.com/php/php-src/pull/22337

Looking forward to the discussion around this one!


-- pmj

Hi Paul!

To make unqualified calls to strlen() resolve to Foo\strlen() inside the Foo 
namespace, you must import the fully qualified function first

Imagine we have an old guzzle/psr7 with stream_for function, and they use it without a qualifier. I defined a global stream_for so now I hijacked the internal library logic. Is it correct?

The previous attempt with namespace pinning made more sense to me

--
Anton

Reply via email to