Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
database system
Priority:
Minor
Category:
Bug report
Assigned:
Reporter:
Created:
16 Nov 2005 at 16:17 UTC
Updated:
2 Dec 2005 at 14:20 UTC
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
Comment #1
m3avrck commentedIssue has been fixed as part of my culmative MySQLi / PHP 5 patch: http://drupal.org/node/36828
Comment #2
dries commentedFixed in HEAD. Thanks.
Comment #3
(not verified) commented