PHP 4.0 Bug #6969 Updated: operator / assignment presidence

From: Date: Sun, 01 Oct 2000 07:39:07 +0000
Subject: PHP 4.0 Bug #6969 Updated: operator / assignment presidence
Groups: php.dev 
Request: Send a blank email to php-dev+get-33937@lists.php.net to get a copy of this message
ID: 6969 Updated by: zak Reported By: shmengie_2000@yahoo.com 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@yahoo.com 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

« previous php.dev (#33937) next »