summaryrefslogtreecommitdiff
path: root/ext/pgsql/tests/17result.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pgsql/tests/17result.phpt')
-rw-r--r--ext/pgsql/tests/17result.phpt40
1 files changed, 40 insertions, 0 deletions
diff --git a/ext/pgsql/tests/17result.phpt b/ext/pgsql/tests/17result.phpt
new file mode 100644
index 0000000000..33acb3a682
--- /dev/null
+++ b/ext/pgsql/tests/17result.phpt
@@ -0,0 +1,40 @@
+--TEST--
+PostgreSQL pg_fetch_*() functions
+--SKIPIF--
+<?php include("skipif.inc"); ?>
+--FILE--
+<?php
+include("result.inc");
+?>
+--EXPECT--
+object(stdClass)(3) {
+ ["num"]=>
+ string(1) "1"
+ ["str"]=>
+ string(3) "ABC"
+ ["bin"]=>
+ NULL
+}
+array(6) {
+ [0]=>
+ string(1) "1"
+ ["num"]=>
+ string(1) "1"
+ [1]=>
+ string(3) "ABC"
+ ["str"]=>
+ string(3) "ABC"
+ [2]=>
+ NULL
+ ["bin"]=>
+ NULL
+}
+array(3) {
+ [0]=>
+ string(1) "1"
+ [1]=>
+ string(3) "ABC"
+ [2]=>
+ NULL
+}
+Ok