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
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: 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: Mon Dec 30 14:01:28 2024 UTC