We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69f7562 commit f5815d6Copy full SHA for f5815d6
ext/pgsql/tests/gh17158.phpt
@@ -2,25 +2,15 @@
2
GH-17158 (pg_fetch_result Shows Incorrect ArgumentCountError Message when Called With 1 Argument)
3
--EXTENSIONS--
4
pgsql
5
---SKIPIF--
6
-<?php include("skipif.inc"); ?>
7
--FILE--
8
<?php
9
10
-include('config.inc');
11
-
12
-$db = pg_connect($conn_str);
13
14
-$result = pg_query($db, "SELECT * FROM ".$table_name.";");
15
try {
16
- pg_fetch_result($result);
+ pg_fetch_result(null);
17
} catch (ArgumentCountError $e) {
18
echo $e->getMessage(), "\n";
19
}
20
21
-pg_free_result($result);
22
-pg_close($db);
23
24
?>
25
--EXPECT--
26
-pg_fetch_result() expects 2 or 3 arguments, 1 given
+pg_fetch_result() expects at least 2 arguments, 1 given
0 commit comments