#1250 [Com]: logical operators dont pass value
| From: | cock-black153 at hotmail dot com | Date: | Tue, 20 Jul 2004 15:12:11 +0000 |
| Subject: | #1250 [Com]: logical operators dont pass value | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-63144@lists.php.net to get a copy of this message | ||
ID: 1250
Comment by: cock-black153 at hotmail dot com
Reported By: kundrat at general-it dot sk
Status: Closed
Bug Type: Feature/Change Request
Operating System: linux 2.2.1 glibc 2.0.7
PHP Version: 3.0.7
New Comment:
<a href=http://xaveragewomen-blowj.da.ru>black
cock</a>
Previous Comments:
------------------------------------------------------------------------
[2000-08-09 22:19:06] hholzgra@php.net
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
------------------------------------------------------------------------
[1999-03-20 19:19:44] 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).
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=1250&edit=1