ibase_errmsg_001.phpt 417 B

12345678910111213141516171819202122
  1. --TEST--
  2. ibase_errmsg(): Basic test
  3. --SKIPIF--
  4. <?php include("skipif.inc"); ?>
  5. --FILE--
  6. <?php
  7. require("interbase.inc");
  8. $x = ibase_connect($test_base);
  9. ibase_query('SELECT Foobar');
  10. var_dump(ibase_errmsg());
  11. ibase_close($x);
  12. var_dump(ibase_errmsg());
  13. ?>
  14. --EXPECTF--
  15. Warning: ibase_query(): Dynamic SQL Error SQL error code = -104 %s on line %d
  16. string(%d) "Dynamic SQL Error SQL error code = -104 %s"
  17. bool(false)