Re: [SMARTY] Bring back E_ALL!

From: Date: Mon, 15 Apr 2002 16:13:57 +0000
Subject: Re: [SMARTY] Bring back E_ALL!
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3737@lists.php.net to get a copy of this message
"Luc Saint-Elie" <luc@saint-elie.com> schrieb im Newsbeitrag news:5.1.0.14.2.20020415090901.02844490@pop.pro.proxad.net... > Hello, > > To suppress warnings, I use : > > {if isset($var)} > {$var} > {/if} > > Somehow its a good thing because with the new settings > (register_global=off) on PHP 4.2 we will have to be more aware of variables > (and this is probably a very good thing for tourist like me..) > > I understand that the warning is strange in case of : > {$var|default:"blah blah"} > > But you may want to try isset() > > Luc > > At 01:00 15/04/02 +0200, Michal Prinke wrote: > > >It is a shame that even {$var|default:"blah blah"} causes warnings > >when E_ALL is on... > > > >-- > >Smarty General Mailing List (http://smarty.php.net/) > >To unsubscribe, visit: http://www.php.net/unsub.php Anyway, while Smarty checks for the value of $var it should be easy to implement a interceptor for warnings. Norbert

« previous php.smarty.general (#3737) next »