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
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: 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

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