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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 17:01:33 2025 UTC