Restored api of `php_pgsql_result2array` and added `php_pgsql_result2array_ex` with the `result_type` parameter.