#46813 [Opn->Csd]: class_exists doesn`t work with fully qualified namespace
ID: 46813
Updated by: johannes@php.net
Reported By: php at mobhoc dot de
-Status: Open
+Status: Closed
Bug Type: Class/Object related
Operating System: Gentoo Linux
PHP Version: 5.3CVS-2008-12-09 (snap)
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2008-12-09 17:20:43] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46813&edit=1
Thread (3 messages)