File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
ext /
interbase /
tests /
ibase_param_info_001.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:47:56 2012 UTC (12 years, 6 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
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
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>