PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

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.