[PHP-DEV] PHP 4.0 Bug #6969 Updated: operator / assignment presidence From: Bug Database (php-dev <email protected>)
Date: 10/01/00

ID: 6969
Updated by: zak
Reported By: shmengie_2000 <email protected>
Status: Closed
Bug Type: *General Issues
Assigned To:
Comments:

This is not a bug - it is documented and expected behavior

Previous Comments:
---------------------------------------------------------------------------

[2000-10-01 03:36:32] shmengie_2000 <email protected>
This cought me off guard perhaps a bug:

The && operator takes presidence over the assignment operator = but the 'and' operator does not.

while($row=dbFetch($cursor) && $i < 20)

$row=(dbFetch($cursor) && i)

where

while($row=dbFetch($cursor) and $i < 20)

$row=(dbFetch($cursor))

---------------------------------------------------------------------------

Full Bug description available at: http://bugs.php.net/?id=6969

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>