1
0
mirror of https://github.com/php/php-src.git synced 2026-04-11 10:03:18 +02:00

Fixing the use of compatibility mode. When the flag is off the system should return correct PHP types (default) when the flag is on strings will be returned for all data types.

This commit is contained in:
Frank M. Kromann
2001-05-08 19:24:14 +00:00
parent aaebbecdcf
commit 8a030b9809

View File

@@ -231,9 +231,9 @@ static void php_mssql_init_globals(zend_mssql_globals *mssql_globals)
MS_SQL_G(num_persistent) = 0;
if (cfg_get_long("mssql.compatability_mode", &compatability_mode) == SUCCESS) {
if (compatability_mode) {
MS_SQL_G(get_column_content) = php_mssql_get_column_content_with_type;
} else {
MS_SQL_G(get_column_content) = php_mssql_get_column_content_without_type;
} else {
MS_SQL_G(get_column_content) = php_mssql_get_column_content_with_type;
}
}
}