You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since PHP 5.3 has been released, as per PHP documentation the mssql
driver is no longer available on Windows. Microsoft has published a
new SQL Server Native Driver.
This commits adds support for this new driver (sqlsrv) to MantisBT
as mssqlnative db type.
Thanks to genius_p and tomkraw1 for the original patch and testing.
Fixes #11776
print_test( 'Checking PHP support for database type', db_check_database_support( $f_db_type ), true, 'database is not supported by PHP. Check that it has been compiled into your server.' );
169
+
print_test( 'Checking PHP support for database type',
170
+
db_check_database_support( $f_db_type ), true,
171
+
'database is not supported by PHP. Check that it has been compiled into your server.'
172
+
);
173
+
if( $f_db_type == 'mssql' ) {
174
+
print_test( 'Checking PHP support for Microsoft SQL Server driver',
175
+
version_compare( phpversion(), '5.3' ) < 0, true,
176
+
'mssql driver is no longer supported in PHP >= 5.3, please use mssqlnative instead'
177
+
);
178
+
}
170
179
}
171
180
172
181
$g_db = ADONewConnection( $f_db_type );
@@ -241,16 +250,17 @@ function InsertData( $p_table, $p_data ) {
241
250
<?phpprint_test( 'Setting Database Type', '' !== $f_db_type, true, 'database type is blank?' )?>
242
251
243
252
<!-- Checking DB support-->
244
-
<?phpprint_test( 'Checking PHP support for database type', db_check_database_support( $f_db_type ), true, 'database is not supported by PHP. Check that it has been compiled into your server.' )?>
<?phpprint_test( 'Setting Database Name', '' !== $f_database_name, true, 'database name is blank' )?>
249
253
<?php
254
+
print_test( 'Checking PHP support for database type', db_check_database_support( $f_db_type ), true, 'database is not supported by PHP. Check that it has been compiled into your server.' );
0 commit comments