tbrehm
2009-09-17 8c5f5493878930616f066663d3802598421882c9
Fixed: FS#894 - Improve mysql connection error handling in installer
Check if the mysql_connect function exists in the installer.
1 files modified
3 ■■■■■ changed files
install/install.php 3 ●●●●● patch | view | raw | blame | history
install/install.php
@@ -109,6 +109,9 @@
$conf['hostname'] = $inst->free_query('Full qualified hostname (FQDN) of the server, eg server1.domain.tld ', $tmp_out[0]);
unset($tmp_out);
// Check if the mysql functions are loaded in PHP
if(!function_exists('mysql_connect')) die('No PHP mysql functions available. Please ensure that the PHP mysql module is loaded.');
//** Get MySQL root credentials
$finished = false;
do {