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
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:
20 + 40 = ?
Subscribe to this entry?

 
 [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 May 15 15:01:36 2024 UTC