ID: 12584
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: *General Issues
Operating System: Debian GNU/Linux [woody]
PHP Version: 4.0.5
New Comment:

any string that is not empty evaluates true.

(*Andy*)

Previous Comments:
------------------------------------------------------------------------

[2001-08-05 18:39:20] [EMAIL PROTECTED]

Hi $reader,


perhaps I'm tired out...but:

<?
        $testvar = true;
        if ($testvar == "DOUBLE") echo "WHY?";
?>


...why the script output is 'WHY?' ?
Bug or feature? :-)


Bye,
Oliver

------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=12584&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to