From: updates at mail dot ru
Operating system: windows 98
PHP version: 4.3.4
PHP Bug Type: Scripting Engine problem
Bug description: Error in evaluate logical expression

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 bug report at [url]http://bugs.php.net/?id=26262&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=26262&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=26262&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=26262&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=26262&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=26262&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=26262&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=26262&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=26262&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=26262&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=26262&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=26262&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=26262&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=26262&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=26262&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=26262&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=26262&r=float[/url]