1--TEST-- 2GH-17158 (pg_fetch_result Shows Incorrect ArgumentCountError Message when Called With 1 Argument) 3--EXTENSIONS-- 4pgsql 5--FILE-- 6<?php 7 8try { 9 pg_fetch_result(null); 10} catch (ArgumentCountError $e) { 11 echo $e->getMessage(), "\n"; 12} 13 14?> 15--EXPECT-- 16pg_fetch_result() expects at least 2 arguments, 1 given 17