PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » DB » Bug #4319

Little typo in mysql(i).php

Details

Submitted2005-05-10 18:27 UTC
Fromkester dot everts at wanadoo dot nl
Assigneddanielc
StatusBogus
PackageDB
PHP VersionIrrelevant
OSIrrelevant
Roadmaps(Not assigned)

Comments

[2005-05-10 18:27 UTC] kester dot everts at wanadoo dot nl

Description:
------------
In mysql.php on line 896 and in mysqli.php on line 906 we can find this:
if ($this->options['portability'] & DB_PORTABILITY_ERRORS) {

I think this is a typo, and it should be '&&', since that will evaluate into a boolean value. PHP will, however, convert booleans to integers when a bitwise operator (such as '&') is used, so this actually works just fine.