ID: 42820
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Open
+Status: Assigned
Bug Type: Scripting Engine problem
PHP Version: 5CVS-2007-10-01 (CVS)
-Assigned To:
+Assigned To: dmitry
Previous Comments:
------------------------------------------------------------------------
[2007-10-01 19:23:38] [EMAIL PROTECTED]
Description:
------------
i don't know if it's right to expect a class named foo here, but anyway
it should be possible to check for a constant within a namespace
Reproduce code:
---------------
<?php
namespace foo;
var_dump(defined("foo::BAR"));
Expected result:
----------------
false
Actual result:
--------------
Fatal error: Class 'foo' not found in ... on line 3
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42820&edit=1