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
 [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: Tue Apr 23 15:01:32 2024 UTC