Re: Re: RE : [PHP-DEV] [PATCH] in_class_exists() for detecting __autoload() called by class_exists() and interface_exists()
| From: | Gregory Beaver | Date: | Sun, 07 Oct 2007 03:27:07 +0000 |
| Subject: | Re: Re: RE : [PHP-DEV] [PATCH] in_class_exists() for detecting __autoload() called by class_exists() and interface_exists() | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-32689@lists.php.net to get a copy of this message | ||
Stanislav Malyshev wrote:
>> 1) ability to customize the fatal error message
>> 2) knowing whether the class is required or optional
>
> I don't think we should start customizing error messages. The engine
> has a lot of error messages and they are not customized. I see no
> reason why autoloader can't produce message of its own if it wants to
> - why the engine should care about it in this particular case.
> As for being required - I don't see why autoloader needs to know that.
> If the engine asked for the class, then it needs it, no? If you didn't
> need the class, why try autoloading it?
Ever heard of an optional dependency?
:)
Greg