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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: Oliver dot Siegmar at gmx dot de
New email:
PHP Version: OS:

 

 [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 08:01:30 2024 UTC