This check should be added before the @mysql_connect
call in mysqldatabase.php:
extension_loaded('mysql') or trigger_error('mysql
extension not loaded', E_USER_ERROR);
(A new language constant should probably be added for
the error text.)
Because of the @ in @mysql_connect, if PHP doesn't have
the MySQL extension loaded, the script will stop with
no indication of the problem, even if PHP debug is on.
Even if MySQL works properly when XOOPS is first
installed, a server configuration change, such as a PHP
upgrade, could result in MySQL being "lost". That's
why this check should be done dynamically.
Log in to post a comment.