php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2654 var boolean bug
Submitted: 1999-11-03 03:05 UTC Modified: 1999-11-03 03:13 UTC
From: sinus at friko2 dot onet dot pl Assigned:
Status: Closed Package: Parser error
PHP Version: Earlier? Upgrade first! OS: win32
Private report: No CVE-ID: None
 [1999-11-03 03:05 UTC] sinus at friko2 dot onet dot pl
$bool = false;
if ($bool=false) 

This didn't work on php4b2!

but work:

if (!$bool)

???

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-11-03 03:12 UTC] thies at cvs dot php dot net
$a=false;  # is an assingment

if ($a==false) # is a compare

so you want to say:

if ($bool==false)   	
 [1999-11-03 03:13 UTC] thies at cvs dot php dot net
forgo to close
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 15:01:32 2024 UTC