Skip to content

Commit

Permalink
Add check for deprecated mysql driver
Browse files Browse the repository at this point in the history
Issue #23381
  • Loading branch information
atrol committed Sep 25, 2017
1 parent 677c247 commit f01b08d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions admin/install.php
Expand Up @@ -249,6 +249,12 @@ function print_test( $p_test_description, $p_result, $p_hard_fail = true, $p_mes
BAD, true,
'mssql driver is no longer supported in PHP >= 5.3, please use mssqlnative instead' );
}

if( $f_db_type == 'mysql' ) {
print_test( 'Checking PHP support for MySQL driver',
BAD, true,
'mysql driver is deprecated as of PHP 5.5.0, and has been removed as of PHP 7.0.0. The driver is no longer supported by MantisBT, please use mysqli instead' );
}
}

$g_db = ADONewConnection( $f_db_type );
Expand Down

0 comments on commit f01b08d

Please sign in to comment.