Bug #443 Updated: Unable to operate on dBase and standard file simultaneously.

From: Date: Sat, 10 Oct 1998 23:22:23 +0000
Subject: Bug #443 Updated: Unable to operate on dBase and standard file simultaneously.
Groups: php.dev 
Request: Send a blank email to php-dev+get-1795@lists.php.net to get a copy of this message
ID: 443 Updated by: jim Reported By: rgreene@pcpros.net Status: Closed Bug Type: dBase related Assigned To: Comments: This is a tricky one -- the result of the || operator is always a boolean value. This means that: $test = "foo" || 5; results in $test == 1. In your example, this means that $db and $FILE are getting set to 1, not the return values of the fopen() and dbase_open() functions. Full Bug description available at: http://ca.php.net/bugs.php3?id=443 -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#1795) next »