Re: php 4.3.7/5.0

From: Date: Tue, 13 Jul 2004 19:39:09 +0000
Subject: Re: php 4.3.7/5.0
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-190378@lists.php.net to get a copy of this message
* Thus wrote Josh Close: > 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 */ } These values will all *not* do something: var_dump((bool) 0); var_dump((bool) array()); var_dump((bool) ""); var_dump((bool) "0"); var_dump((bool) null); var_dump((bool) false); > doesn't work anymore. I've had to change code to > > if($var > 0) what is the actual value of $var? Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid!

« previous php.general (#190378) next »