Re: Re[2]: [SMARTY-DEV] More accurate compiled file names
| From: | Antony Dovgal | Date: | Sun, 30 May 2004 20:22:35 +0000 |
| Subject: | Re: Re[2]: [SMARTY-DEV] More accurate compiled file names | ||
| References: | 1 2 3 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-2333@lists.php.net to get a copy of this message | ||
On Mon, 31 May 2004 00:24:34 +0400
Dmitry Koteroff <spam@koteroff.ru> wrote:
> I am trully shure that it is IMPOSSIBLE to handle all PHP errors
> while compiling the template.
Why?
To check if such method/function/whatever exists is quite easy imho.
> And more - it is not good from
> design point of view - handle errors of one subsystem (PHP) from
> another subsystem (Smarty).
Why do you think so?
Smarty handles a lot of similar errors on parsing stage, so why not to
handle them all?
> Perl has a very powerful eval(). PHP's eval is much more
> primitive - it does not allow us to handle critical errors (I
> don't know why). So, the only method to improve debugging is to
> simplify detection of buggy file.
Hmm.. how can eval() help us, if Smarty doesn't use it at all?
--
Wbr,
Antony Dovgal aka tony2001
tony2001@phpclub.net || antony@dovgal.com