Re: [PATCH] in_class_exists() for detecting __autoload() called by class_exists() and interface_exists()
| From: | Benjamin Schulz | Date: | Thu, 04 Oct 2007 14:34:14 +0000 |
| Subject: | Re: [PATCH] in_class_exists() for detecting __autoload() called by class_exists() and interface_exists() | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-32631@lists.php.net to get a copy of this message | ||
Hi,
What about __class_exists() and SPL_register_class_exists_handler()? One could suppose the classloader (the one that implements __autoload) knows if a class exists (as in: is registered within the classloader or the class-file exists) without loading it and maybe the class that calls class_exists() never uses it.
regards,
Benjamin