dba001.phpt 532 B

12345678910111213141516171819202122232425
  1. --TEST--
  2. DBA File Creation Test
  3. --SKIPIF--
  4. <?php
  5. require_once(dirname(__FILE__) .'/skipif.inc');
  6. die("info $HND handler used");
  7. ?>
  8. --FILE--
  9. <?php
  10. require_once(dirname(__FILE__) .'/test.inc');
  11. echo "database handler: $handler\n";
  12. if (($db_file=dba_open($db_file, "n", $handler))!==FALSE) {
  13. echo "database file created\n";
  14. dba_close($db_file);
  15. } else {
  16. echo "$db_file does not exist\n";
  17. }
  18. ?>
  19. --CLEAN--
  20. <?php
  21. require(dirname(__FILE__) .'/clean.inc');
  22. ?>
  23. --EXPECTF--
  24. database handler: %s
  25. database file created