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

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Apr 18 23:01:27 2024 UTC