[PHP-DEV] PHP 4.0 Bug #6969: operator / assignment presidence From: shmengie_2000 <email protected>
Date: 10/01/00

From: shmengie_2000 <email protected>
Operating system: linux
PHP version: 4.0.2
PHP Bug Type: *General Issues
Bug description: operator / assignment presidence

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))

-- 
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>