@@ -63,6 +63,7 @@ function_entry mssql_functions[] = {
63
63
PHP_FE (mssql_fetch_field , NULL )
64
64
PHP_FE (mssql_fetch_row , NULL )
65
65
PHP_FE (mssql_fetch_array , NULL )
66
+ PHP_FE (mssql_fetch_assoc , NULL )
66
67
PHP_FE (mssql_fetch_object , NULL )
67
68
PHP_FE (mssql_field_length , NULL )
68
69
PHP_FE (mssql_field_name , NULL )
@@ -1280,11 +1281,19 @@ PHP_FUNCTION(mssql_fetch_object)
1280
1281
Returns an associative array of the current row in the result set specified by result_id */
1281
1282
PHP_FUNCTION (mssql_fetch_array )
1282
1283
{
1283
- php_mssql_fetch_hash (INTERNAL_FUNCTION_PARAM_PASSTHRU , MSSQL_ASSOC );
1284
+ php_mssql_fetch_hash (INTERNAL_FUNCTION_PARAM_PASSTHRU , MSSQL_BOTH );
1284
1285
}
1285
1286
1286
1287
/* }}} */
1287
1288
1289
+ /* {{{ proto array mssql_fetch_array(int result_id [, int result_type])
1290
+ Returns an associative array of the current row in the result set specified by result_id */
1291
+ PHP_FUNCTION (mssql_fetch_assoc )
1292
+ {
1293
+ php_mssql_fetch_hash (INTERNAL_FUNCTION_PARAM_PASSTHRU , MSSQL_ASSOC );
1294
+ }
1295
+
1296
+ /* }}} */
1288
1297
1289
1298
/* {{{ proto int mssql_data_seek(int result_id, int offset)
1290
1299
Moves the internal row pointer of the MS-SQL result associated with the specified result identifier to pointer to the specified row number */
0 commit comments