1--TEST--
2ibase_param_info(): Basic test
3--SKIPIF--
4<?php include("skipif.inc"); ?>
5--FILE--
6<?php
7
8require("interbase.inc");
9
10$x = ibase_connect($test_base);
11
12$rs = ibase_prepare('SELECT * FROM test1 WHERE 1 = ? AND 2 = ?');
13var_dump(ibase_param_info($rs, 1));
14
15print "---\n";
16
17var_dump(ibase_param_info($rs, 100));
18
19print "---\n";
20
21var_dump(ibase_param_info(100));
22
23
24?>
25--EXPECTF--
26array(10) {
27  [0]=>
28  string(0) ""
29  ["name"]=>
30  string(0) ""
31  [1]=>
32  string(0) ""
33  ["alias"]=>
34  string(0) ""
35  [2]=>
36  string(0) ""
37  ["relation"]=>
38  string(0) ""
39  [3]=>
40  string(1) "4"
41  ["length"]=>
42  string(1) "4"
43  [4]=>
44  string(7) "INTEGER"
45  ["type"]=>
46  string(7) "INTEGER"
47}
48---
49bool(false)
50---
51
52Warning: ibase_param_info() expects exactly 2 parameters, 1 given in %s on line %d
53NULL
54