|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-09-04 17:31 UTC] nikic@php.net
-Status: Open
+Status: Not a bug
[2017-09-04 17:31 UTC] nikic@php.net
[2017-09-04 17:56 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon Jan 12 09:00:01 2026 UTC |
Description: ------------ If a namespaced function is imported into the global scope it is apparently not recognized by function_exists(). Test script: --------------- <?php namespace Foo { function bar() { echo 'I am there!'; } } namespace { use function Foo\bar; var_dump(function_exists('bar')); bar(); } Expected result: ---------------- bool(true) I am there! Actual result: -------------- bool(false) I am there!