dba001.phpt 551 B

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