Re: [SMARTY] Managing vars not assigned
| From: | Jordi Canals | Date: | Thu, 21 Oct 2004 09:39:56 +0000 |
| Subject: | Re: [SMARTY] Managing vars not assigned | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11906@lists.php.net to get a copy of this message | ||
Hi boots,
Thansks for your comments. Really I don't like modifiying the Smarty
class and we extend it for customization purposes. But in one project
I'm required all scripts runn under E_STRICT. After some testing, seen
that just modifiying the var declarations to public, makes Smarty to
run in E_STRICT mode with no problems :D
Thanks again,
Jordi.
On Wed, 20 Oct 2004 11:01:57 -0700 (PDT), boots <jayboots@yahoo.com> wrote:
> --- Jordi Canals <jcanals@gmail.com> wrote:
> > 1) [...snip...]
> > Any other thing that I should consider to totally compliant with
> > E_STRICT? (I don't need backwards compatibility as all my servers run
> > PHP 5.0.2).
>
> You may want to turn error reporting down to E_ALL when including the
> Smarty class and then put it back to E_STRICT afterwards instead of
> modifying the Smarty class directly. While Smarty is compatible with
> PHP5, it is not fully compliant so using E_STRICT against it is not
> appropriate, IMO.
>
[snip]