http://bugzilla.wikipedia.org/show_bug.cgi?id=809
Attempt to load mysql php extension if it is not loaded.
*/
function open( $server, $user, $password, $dbName ) {
# Test for missing mysql.so
+ # First try to load it
+ if (!@extension_loaded('mysql')) {
+ @dl('mysql.so');
+ }
+
# Otherwise we get a suppressed fatal error, which is very hard to track down
if ( !function_exists( 'mysql_connect' ) ) {
die( "MySQL functions missing, have you compiled PHP with the --with-mysql option?\n" );