The 'could not connect to database' error message in db_connect() in database.mysqli.inc contains wrong information. It says that it is possible that PHP has not got mysqli compiled with it. However, when mysqli is not compiled the function mysqli_init() will cause a fatal error because the function is not found. This means that the error message code will never be reached and the message will never be shown when mysqli is not compiled.

Suggested fix: remove the PHP+mysqli part from the error message or find another way to detect whether mysqli is compiled or not.

Comments

m3avrck’s picture

Status: Active » Fixed

Issue has been fixed as part of my culmative MySQLi / PHP 5 patch: http://drupal.org/node/36828

dries’s picture

Fixed in HEAD. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)