php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2364 ! and & operators works differently from php3 to php4
Submitted: 1999-09-23 06:40 UTC Modified: 1999-09-23 12:17 UTC
From: bago at datasail dot net Assigned:
Status: Closed Package: Other
PHP Version: 4.0 Latest CVS (23/09/1999) OS: FreeBSD 3.2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bago at datasail dot net
New email:
PHP Version: OS:

 

 [1999-09-23 06:40 UTC] bago at datasail dot net
try this with php3 and php4
print(!0 & !0);

php3 print 1
php4 print -272666496

with && it works fine... it should be documented in incompatibilities..

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-09-23 12:17 UTC] andi at cvs dot php dot net
It was a bug not an incompatibility.
I've fixed it in the latest CVS version
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Oct 05 22:01:26 2024 UTC