ibase_num_fields_001.phpt 497 B

12345678910111213141516171819202122232425
  1. --TEST--
  2. ibase_num_fields(): Basic test
  3. --SKIPIF--
  4. <?php include("skipif.inc"); ?>
  5. --FILE--
  6. <?php
  7. require("interbase.inc");
  8. $x = ibase_connect($test_base);
  9. var_dump(ibase_num_fields(ibase_query('SELECT * FROM test1')));
  10. var_dump(ibase_num_fields(1));
  11. var_dump(ibase_num_fields());
  12. ?>
  13. --EXPECTF--
  14. int(2)
  15. Warning: ibase_num_fields() expects parameter 1 to be resource, integer given in %s on line %d
  16. NULL
  17. Warning: ibase_num_fields() expects exactly 1 parameter, 0 given in %s on line %d
  18. NULL