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
array( false => 'The value of the mssql.textlimit directive is currently ' . htmlentities( $t_mssql_textlimit ) . '. You should set this value to -1 to prevent large text fields being truncated upon being read from the database.' )
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.' );
172
+
print_test( 'Checking PHP support for database type',
173
+
db_check_database_support( $f_db_type ), true,
174
+
'database is not supported by PHP. Check that it has been compiled into your server.'
175
+
);
176
+
if( $f_db_type == 'mssql' ) {
177
+
print_test( 'Checking PHP support for Microsoft SQL Server driver',
178
+
version_compare( phpversion(), '5.3' ) < 0, true,
179
+
'mssql driver is no longer supported in PHP >= 5.3, please use mssqlnative instead'
180
+
);
181
+
}
173
182
}
174
183
175
184
$g_db = ADONewConnection( $f_db_type );
@@ -244,16 +253,17 @@ function InsertData( $p_table, $p_data ) {
244
253
<?phpprint_test( 'Setting Database Type', '' !== $f_db_type, true, 'database type is blank?' )?>
245
254
246
255
<!-- Checking DB support-->
247
-
<?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' )?>
252
256
<?php
257
+
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