Home » Database » DB » Bug #4319
Little typo in mysql(i).php
Details
| Submitted | 2005-05-10 18:27 UTC |
|---|---|
| From | kester dot everts at wanadoo dot nl |
| Assigned | danielc |
| Status | Bogus |
| Package | DB |
| PHP Version | Irrelevant |
| OS | Irrelevant |
| 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.