File tree Expand file tree Collapse file tree 1 file changed +67
-0
lines changed Expand file tree Collapse file tree 1 file changed +67
-0
lines changed Original file line number Diff line number Diff line change 1+ --TEST--
2+ ibase_param_info(): Basic test with ibase_query()
3+ --SKIPIF--
4+ <?php include ("skipif.inc " ); ?>
5+ --FILE--
6+ <?php
7+
8+ require ("interbase.inc " );
9+
10+ (function ($ test_base ){
11+ ibase_connect ($ test_base );
12+
13+ $ rs = ibase_query ('SELECT * FROM TEST1 WHERE 1 = ? OR 2 = ? ' , 1 , 2 );
14+ $ count = ibase_num_params ($ rs );
15+ var_dump ($ count );
16+ for ($ i = 0 ; $ i < $ count ; $ i ++){
17+ var_dump (ibase_field_info ($ rs , $ i ));
18+ }
19+ })($ test_base );
20+
21+ ?>
22+ --EXPECTF--
23+ int(2)
24+ array(10) {
25+ [0]=>
26+ string(1) "I"
27+ ["name"]=>
28+ string(1) "I"
29+ [1]=>
30+ string(1) "I"
31+ ["alias"]=>
32+ string(1) "I"
33+ [2]=>
34+ string(5) "TEST1"
35+ ["relation"]=>
36+ string(5) "TEST1"
37+ [3]=>
38+ string(1) "4"
39+ ["length"]=>
40+ string(1) "4"
41+ [4]=>
42+ string(7) "INTEGER"
43+ ["type"]=>
44+ string(7) "INTEGER"
45+ }
46+ array(10) {
47+ [0]=>
48+ string(1) "C"
49+ ["name"]=>
50+ string(1) "C"
51+ [1]=>
52+ string(1) "C"
53+ ["alias"]=>
54+ string(1) "C"
55+ [2]=>
56+ string(5) "TEST1"
57+ ["relation"]=>
58+ string(5) "TEST1"
59+ [3]=>
60+ string(3) "100"
61+ ["length"]=>
62+ string(3) "100"
63+ [4]=>
64+ string(7) "VARCHAR"
65+ ["type"]=>
66+ string(7) "VARCHAR"
67+ }
You can’t perform that action at this time.
0 commit comments