dba_gdbm.phpt 780 B

123456789101112131415161718192021222324252627282930313233343536
  1. --TEST--
  2. DBA GDBM handler test
  3. --SKIPIF--
  4. <?php
  5. $handler = 'gdbm';
  6. require_once dirname(__FILE__) .'/skipif.inc';
  7. ?>
  8. --FILE--
  9. <?php
  10. $handler = 'gdbm';
  11. require_once dirname(__FILE__) .'/test.inc';
  12. $lock_flag = ''; // lock in library
  13. require_once dirname(__FILE__) .'/dba_handler.inc';
  14. // Read during write is system dependent. Important is that there is no deadlock
  15. ?>
  16. ===DONE===
  17. --EXPECTF--
  18. database handler: gdbm
  19. 3NYNYY
  20. Content String 2
  21. Content 2 replaced
  22. Read during write:%sallowed
  23. "key number 6" written
  24. Failed to write "key number 6" 2nd time
  25. Content 2 replaced 2nd time
  26. The 6th value
  27. array(3) {
  28. ["key number 6"]=>
  29. string(13) "The 6th value"
  30. ["key2"]=>
  31. string(27) "Content 2 replaced 2nd time"
  32. ["key5"]=>
  33. string(23) "The last content string"
  34. }
  35. ===DONE===