Annotation of embedaddon/php/ext/interbase/tests/ibase_num_fields_001.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: ibase_num_fields(): 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: var_dump(ibase_num_fields(ibase_query('SELECT * FROM test1')));
! 13:
! 14: var_dump(ibase_num_fields(1));
! 15: var_dump(ibase_num_fields());
! 16:
! 17: ?>
! 18: --EXPECTF--
! 19: int(2)
! 20:
! 21: Warning: ibase_num_fields() expects parameter 1 to be resource, integer given in %s on line %d
! 22: NULL
! 23:
! 24: Warning: ibase_num_fields() expects exactly 1 parameter, 0 given in %s on line %d
! 25: NULL
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>