#47593 [NEW]: interface_exists() returns false when using absolute namespace path
| From: | crystality at mail dot ru | Date: | Sun, 08 Mar 2009 00:14:50 +0000 |
| Subject: | #47593 [NEW]: interface_exists() returns false when using absolute namespace path | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-134473@lists.php.net to get a copy of this message | ||
From: crystality at mail dot ru
Operating system: WinXpSP3
PHP version: 5.3CVS-2009-03-08 (snap)
PHP Bug Type: Class/Object related
Bug description: interface_exists() returns false when using absolute namespace path
Description:
------------
Looks like this is the windows version of bug #46813.
Function interface_exists() used without autoloading returns FALSE whith a
fully qualified namespace.
class_exists() works ok. Well interface_exists() does work too but as long
as leading backslash isn't there or with autoloading enabled.
Reproduce code:
---------------
namespace interfaces;
interface debug{}
var_dump(interface_exists("\interfaces\debug", false)); // FALSE
Expected result:
----------------
True
Actual result:
--------------
False
--
Edit bug report at http://bugs.php.net/?id=47593&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47593&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47593&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47593&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=47593&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47593&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=47593&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=47593&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=47593&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=47593&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=47593&r=support
Expected behavior: http://bugs.php.net/fix.php?id=47593&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=47593&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=47593&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=47593&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47593&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47593&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=47593&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=47593&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=47593&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=47593&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=47593&r=mysqlcfg