@@ -108,6 +108,7 @@ function_entry mysql_functions[] = {
108
108
PHP_FE (mysql_num_fields , NULL )
109
109
PHP_FE (mysql_fetch_row , NULL )
110
110
PHP_FE (mysql_fetch_array , NULL )
111
+ PHP_FE (mysql_fetch_assoc , NULL )
111
112
PHP_FE (mysql_fetch_object , NULL )
112
113
PHP_FE (mysql_data_seek , NULL )
113
114
PHP_FE (mysql_fetch_lengths , NULL )
@@ -1352,14 +1353,22 @@ PHP_FUNCTION(mysql_fetch_object)
1352
1353
1353
1354
1354
1355
/* {{{ proto array mysql_fetch_array(int result [, int result_type])
1355
- Fetch a result row as an associative array */
1356
+ Fetch a result row as an array ( associative, numeric or both) */
1356
1357
PHP_FUNCTION (mysql_fetch_array )
1357
1358
{
1358
1359
php_mysql_fetch_hash (INTERNAL_FUNCTION_PARAM_PASSTHRU , 0 );
1359
1360
}
1360
1361
/* }}} */
1361
1362
1362
1363
1364
+ /* {{{ proto array mysql_fetch_assoc(int result)
1365
+ Fetch a result row as an associative array */
1366
+ PHP_FUNCTION (mysql_fetch_assoc )
1367
+ {
1368
+ php_mysql_fetch_hash (INTERNAL_FUNCTION_PARAM_PASSTHRU , MYSQL_ASSOC );
1369
+ }
1370
+ /* }}} */
1371
+
1363
1372
/* {{{ proto int mysql_data_seek(int result, int row_number)
1364
1373
Move internal result pointer */
1365
1374
PHP_FUNCTION (mysql_data_seek )
0 commit comments