php-src/ext/interbase/tests/ibase_param_info_001.phpt
2008-11-27 02:16:56 +00:00

54 lines
784 B
PHP

--TEST--
ibase_param_info(): Basic test
--SKIPIF--
<?php include("skipif.inc"); ?>
--FILE--
<?php
require("interbase.inc");
$x = ibase_connect($test_base);
$rs = ibase_prepare('SELECT * FROM test1 WHERE 1 = ? AND 2 = ?');
var_dump(ibase_param_info($rs, 1));
print "---\n";
var_dump(ibase_param_info($rs, 100));
print "---\n";
var_dump(ibase_param_info(100));
?>
--EXPECTF--
array(10) {
[0]=>
string(0) ""
["name"]=>
string(0) ""
[1]=>
string(0) ""
["alias"]=>
string(0) ""
[2]=>
string(0) ""
["relation"]=>
string(0) ""
[3]=>
string(1) "4"
["length"]=>
string(1) "4"
[4]=>
string(7) "INTEGER"
["type"]=>
string(7) "INTEGER"
}
---
bool(false)
---
Warning: ibase_param_info() expects exactly 2 parameters, 1 given in %s on line %d
NULL