Re: [PHP-DEV] Bug #417: silent (?) change in variable's value behaviour From: Zeev Suraski (bourbon <email protected>)
Date: 05/30/98

At 12:04 30/05/98 +0200, Jan Legenhausen wrote:
>Look at this:
>
><?
>$test="";
>
>if (!$test) echo "False\n";
>if (empty($test)) echo "Empty!\n";
>if (isset($test)) echo "Is Set!\n";
>?>
>
>Both functions empty() and isset() say TRUE - that's not the right
>thing, i guess.

Guess again :) It's exactly the correct behavior.

Zeev

--
Zeev Suraski   <zeev <email protected>>
For a PGP public key, finger bourbon <email protected>