|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #1250 logical operators dont pass value
Submitted: 1999-03-20 19:19 UTC Modified: 2000-08-09 22:19 UTC
From: kundrat at general-it dot sk Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 3.0.7 OS: linux 2.2.1 glibc 2.0.7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: kundrat at general-it dot sk
New email:
PHP Version: OS:


 [1999-03-20 19:19 UTC] kundrat at general-it dot sk
Perl's behaviour of || and && that passes value (e.g.
"0 || 4 = 4" or "1 && 5 = 5" is quite powerfull and
allows for easily written constructs.
I understand that php defines boolean ops to return 0 or 1,
but this change could be worth changing the definition
(maybe for PHP4).
The change itself would be trivial (3 lines).


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-09 22:19 UTC]
well, php4 has bin published now, so this is not likely to
be changend in near or distant future, so it will continue
to be Cish instead of PERLish here
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Feb 26 02:01:28 2024 UTC