ID: 47593 Updated by: fel...@php.net Reported By: crystality at mail dot ru -Status: Assigned +Status: Closed Bug Type: Class/Object related Operating System: WinXpSP3 PHP Version: 5.3CVS-2009-03-08 (snap) Assigned To: felipe 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: ------------------------------------------------------------------------ [2009-03-08 14:19:05] crystality at mail dot ru When will a snapshot be available with the bug fixed? ------------------------------------------------------------------------ [2009-03-08 08:21:35] ka...@php.net The following patch is just a port of the patch for class_exists() that resolves the bug: http://paste2.org/p/160586 - PHP_5_3 ------------------------------------------------------------------------ [2009-03-08 00:14:50] crystality at mail dot ru 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 this bug report at http://bugs.php.net/?id=47593&edit=1