Re: Re: RE : [PHP-DEV] [PATCH] in_class_exists() for detecting __autoload() called by class_exists() and interface_exists()

From: Date: Sun, 07 Oct 2007 01:38:39 +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  Groups: php.internals 
Request: Send a blank email to internals+get-32688@lists.php.net to get a copy of this message
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? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#32688) next »