PHP 4.0 Bug #6969: operator / assignment presidence
| From: | shmengie_2000 at yahoo dot com | Date: | Sun, 01 Oct 2000 07:36:32 +0000 |
| Subject: | PHP 4.0 Bug #6969: operator / assignment presidence | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-33936@lists.php.net to get a copy of this message | ||
From: shmengie_2000@yahoo.com
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))