|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-12-09 17:20 UTC] php at mobhoc dot de
Description:
------------
The function class_exists doesn`t work with a fully qualified namespace.
Reproduce code:
---------------
namespace test;
{
class inner
{
}
}
$inner = new \test\inner();
var_dump(class_exists('\test\inner', false));
Expected result:
----------------
true
Actual result:
--------------
false
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 07:00:02 2025 UTC |
The function interface_exists has the same behaviour. namespace test; { interface inner { } } var_dump(interface_exists('\test\inner', false)); # false