[php-src] Issue #15232: `use function` of fqn global function does not work

From: Date: Sun, 04 Aug 2024 17:34:31 +0000
Subject: [php-src] Issue #15232: `use function` of fqn global function does not work
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247430@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/15232 Author: iluuu1994 ### Description The following code: https://3v4l.org/EBdLQ ```php <?php namespace { function test() { echo __FUNCTION__; } } namespace Foo { function test() { echo __FUNCTION__; } } namespace Foo { use \test; test(); } ``` Resulted in this output: ``` Foo\test ``` But I expected this output instead: ``` test ``` The use should either error, or the used function should be called. ### PHP Version PHP 5.3+ ### Operating System _No response_

« previous php.bugs (#247430) next »