Annotation of embedaddon/php/ext/interbase/tests/ibase_param_info_001.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: ibase_param_info(): Basic test
! 3: --SKIPIF--
! 4: <?php include("skipif.inc"); ?>
! 5: --FILE--
! 6: <?php
! 7:
! 8: require("interbase.inc");
! 9:
! 10: $x = ibase_connect($test_base);
! 11:
! 12: $rs = ibase_prepare('SELECT * FROM test1 WHERE 1 = ? AND 2 = ?');
! 13: var_dump(ibase_param_info($rs, 1));
! 14:
! 15: print "---\n";
! 16:
! 17: var_dump(ibase_param_info($rs, 100));
! 18:
! 19: print "---\n";
! 20:
! 21: var_dump(ibase_param_info(100));
! 22:
! 23:
! 24: ?>
! 25: --EXPECTF--
! 26: array(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: ---
! 49: bool(false)
! 50: ---
! 51:
! 52: Warning: ibase_param_info() expects exactly 2 parameters, 1 given in %s on line %d
! 53: NULL
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>