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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
41 - 33 = ?
Subscribe to this entry?

 
 [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: Sun Jun 16 12:01:28 2024 UTC