Re: php 4.3.7/5.0

From: Date: Tue, 13 Jul 2004 19:15:12 +0000
Subject: Re: php 4.3.7/5.0
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-190377@lists.php.net to get a copy of this message
> I've noticed that in the last release of php 4.3.7 (or 5.0.0), that > when checking the value of a variable has changed. > > ex: > > if($var){ /* do something */ } > > doesn't work anymore. I've had to change code to > > if($var > 0) > > but the problem is, what if $var was converted to $var = "0" instead > of $var = 0 somewhere throughout the code that I didn't know about? > > Is there a way to be sure what's going on here? > > -- > -Josh What about the isset function? Or any of the following: http://us3.php.net/manual/en/ref.var.php --Matthew Sims --<http://killermookie.org>

« previous php.general (#190377) next »