1--TEST--
2ibase_num_fields(): 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
12var_dump(ibase_num_fields(ibase_query('SELECT * FROM test1')));
13
14var_dump(ibase_num_fields(1));
15var_dump(ibase_num_fields());
16
17?>
18--EXPECTF--
19int(2)
20
21Warning: ibase_num_fields() expects parameter 1 to be resource, integer given in %s on line %d
22NULL
23
24Warning: ibase_num_fields() expects exactly 1 parameter, 0 given in %s on line %d
25NULL
26