ID: 26262
Updated by: [email]iliaaphp.net[/email]
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 doentation available at
[url]http://www.php.net/manual/[/url] and the instructions on how to report
a bug at [url]http://bugs.php.net/how-to-report.php[/url]

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 [url]http://bugs.php.net/?id=26262&edit=1[/url]