|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-04-26 01:43 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2014-04-26 01:43 UTC] requinix@php.net
[2014-04-26 02:56 UTC] liranuna at gmail dot com
[2014-04-26 03:15 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 17:00:02 2026 UTC |
Description: ------------ A new feature added in 5.6 allows functions to be imported and aliased. It is possible to re-alias an already imported function but that does not seem to work. Test script: --------------- <?php namespace foo\bar { function baz() { return __FUNCTION__; } } namespace { use function foo\bar\baz as foobarbaz; use function foobarbaz as foobar; var_dump(foobar()); } Expected result: ---------------- string(11) "foo\bar\baz" string(11) "foo\bar\baz" Actual result: -------------- string(11) "foo\bar\baz" Fatal error: Call to undefined function foobarbaz() in %s/test_case.php on line 12