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
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: sinus at friko2 dot onet dot pl
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Wed Feb 28 14:01:28 2024 UTC