[PHP-DEV] Bug #443 Updated: Unable to operate on dBase and standard file simultaneously. From: Bug Database (php-dev <email protected>)
Date: 10/10/98

ID: 443
Updated by: jim
Reported By: rgreene <email protected>
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 <email protected>
For help: php-dev-help <email protected>