dba016.phpt 537 B

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