dba016.phpt 567 B

123456789101112131415161718192021222324252627
  1. --TEST--
  2. DBA lock modifier error message test
  3. --SKIPIF--
  4. <?php
  5. $handler = "flatfile";
  6. require_once(dirname(__FILE__) .'/skipif.inc');
  7. ?>
  8. --FILE--
  9. <?php
  10. $handler = "flatfile";
  11. require_once(dirname(__FILE__) .'/test.inc');
  12. echo "database handler: $handler\n";
  13. $db_file1 = dba_popen($db_filename, 'n-t', 'flatfile');
  14. ?>
  15. ===DONE===
  16. --CLEAN--
  17. <?php
  18. require(dirname(__FILE__) .'/clean.inc');
  19. ?>
  20. --EXPECTF--
  21. database handler: flatfile
  22. Warning: dba_popen(%stest0.dbm,n-t): You cannot combine modifiers - (no lock) and t (test lock) in %sdba016.php on line %d
  23. ===DONE===