php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12584 Var. comparison
Submitted: 2001-08-05 18:39 UTC Modified: 2001-08-05 18:48 UTC
From: Oliver dot Siegmar at gmx dot de Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.0.5 OS: Debian GNU/Linux [woody]
Private report: No CVE-ID: None
 [2001-08-05 18:39 UTC] Oliver dot Siegmar at gmx dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-05 18:48 UTC] andy@php.net
any string that is not empty evaluates true.

(*Andy*)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 10:01:31 2024 UTC