Re: A question to __autoload() fanboys
| From: | Pierre-Alain Joye | Date: | Mon, 01 Aug 2005 14:23:59 +0000 |
| Subject: | Re: A question to __autoload() fanboys | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-39085@lists.php.net to get a copy of this message | ||
On Mon, 01 Aug 2005 14:47:55 +0400
borz_off@cs.msu.su (Alexey Borzov) wrote:
> OK, I *can* fix the case of 'html_template_sigma' here, but the
> problem is the following: if a person uses HTML_Template_IT
> package he most probably does not have HTML_Template_Sigma
> installed (and vice versa), thus trying to autoload the class
> will fail! How should I fix this problem?
I do not like dynamic checks here. PHP will raise a fatal error. In
this case this is perfectly valid (and clear enough). The user has
to "manually" check and fix the problem.
--Pierre