Re[2]: [SMARTY] Warning in Smarty 2.3.0

From: Date: Wed, 27 Nov 2002 17:45:23 +0000
Subject: Re[2]: [SMARTY] Warning in Smarty 2.3.0
References: 1 2 3 4  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6575@lists.php.net to get a copy of this message
At 12:35 2002-11-27 -0500, you wrote:
I disagree .. you can get a warning, but simply not setting a variable before a reference is made to it.. so something like if ($A == '1'){ do this } will generate a warning, unless $A is initiated earlier in the script. Wednesday, November 27, 2002, 12:23:49 PM, you wrote: MP> At 12:22 2002-11-27 -0500, you wrote:
If you have error reporting set to all, you will receive a ton of warnings .. even if they aren't really problems .. so set your reporting to not include warnings.
MP> Yuo only get warnings when the code is buggy. A better solution is to code MP> properly.
Yes, this is exactly what I was talking about. I just wanted to remind you, that in the newest versions of PHP the register_globals variable is off by default. So, if you get an error for this one, simply initialise the variable and all your problems will be gone :) Belevie me, it _is_ possible to code without any warnings. And not too troublesome. -- Michael Paluchowski { michal@nethut.pl } . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CEO, Editor www.NetHut.pl .:. webmaster vortal GSM Phone +48 503 496 837

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