#26262 [Opn->Bgs]: Error in evaluate logical expression
| From: | iliaa@php.net | Date: | Sat, 15 Nov 2003 17:54:19 +0000 |
| Subject: | #26262 [Opn->Bgs]: Error in evaluate logical expression | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-50411@lists.php.net to get a copy of this message | ||
ID: 26262
Updated by: iliaa@php.net
Reported By: updates at mail dot ru
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: windows 98
PHP Version: 4.3.4
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
and is & not &&
Previous Comments:
------------------------------------------------------------------------
[2003-11-15 09:32:55] updates at mail dot ru
Description:
------------
Incorrect evaluate logical expression with "and" (with && all O.K.).
Reproduce code:
---------------
<?php
$c = ((1 < 2) and (4 > 3)) and false;
var_dump($c);
Expected result:
----------------
bool(false)
Actual result:
--------------
bool(true)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26262&edit=1