note 100073 rejected from function.class-exists by tularis
| From: | tularis@php.net | Date: | Tue, 17 Jan 2012 21:14:36 +0000 |
| Subject: | note 100073 rejected from function.class-exists by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-185688@lists.php.net to get a copy of this message | ||
Note Submitter: myb at mikebevz dot com
----
I've got a problem, which I can't solve.
Let's assume that class Zend_Registry exists in global namespace.
---
namespace myNs;
class SomeClass {
public function MyFunc() {
class_exists('Zend_Registry'); // return false
class_exists('\Zend_Registry'); // return false
class_exists('::Zend_Registry'); // return false
}
}
---
How would I check for a class, which exists outside of myNs?