Date: 10/10/98
- Next message: Bug Database: "[PHP-DEV] Bug #745 Updated: <input type=image> and array variables"
- Previous message: jim: "[PHP-DEV] CVS update: php3/doc/functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Bug Database: "[PHP-DEV] Bug #745 Updated: <input type=image> and array variables"
- Previous message: jim: "[PHP-DEV] CVS update: php3/doc/functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

