Re: [RFC] Function Autoloading (mark 5)

From: Date: Wed, 17 Jun 2026 10:03:07 +0000
Subject: Re: [RFC] Function Autoloading (mark 5)
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-131342@lists.php.net to get a copy of this message
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

« previous php.internals (#131342) next »