Bug #12584 Updated: Var. comparison
| From: | andy@php.net | Date: | Sun, 05 Aug 2001 22:48:11 +0000 |
| Subject: | Bug #12584 Updated: Var. comparison | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-62191@lists.php.net to get a copy of this message | ||
ID: 12584
Updated by: andy
Reported By: Oliver.Siegmar@gmx.de
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] Oliver.Siegmar@gmx.de
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