dba_ndbm.phpt 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --TEST--
  2. DBA NDBM handler test
  3. --SKIPIF--
  4. <?php
  5. $handler = 'ndbm';
  6. require_once dirname(__FILE__) .'/skipif.inc';
  7. ?>
  8. --FILE--
  9. <?php
  10. $handler = 'ndbm';
  11. require_once dirname(__FILE__) .'/test.inc';
  12. require_once dirname(__FILE__) .'/dba_handler.inc';
  13. ?>
  14. ===DONE===
  15. --EXPECT--
  16. database handler: ndbm
  17. 3NYNYY
  18. Content String 2
  19. Content 2 replaced
  20. Read during write: not allowed
  21. "key number 6" written
  22. Failed to write "key number 6" 2nd time
  23. Content 2 replaced 2nd time
  24. The 6th value
  25. array(3) {
  26. ["key number 6"]=>
  27. string(13) "The 6th value"
  28. ["key2"]=>
  29. string(27) "Content 2 replaced 2nd time"
  30. ["key5"]=>
  31. string(23) "The last content string"
  32. }
  33. --NO-LOCK--
  34. 3NYNYY
  35. Content String 2
  36. Content 2 replaced
  37. Read during write: not allowed
  38. "key number 6" written
  39. Failed to write "key number 6" 2nd time
  40. Content 2 replaced 2nd time
  41. The 6th value
  42. array(3) {
  43. ["key number 6"]=>
  44. string(13) "The 6th value"
  45. ["key2"]=>
  46. string(27) "Content 2 replaced 2nd time"
  47. ["key5"]=>
  48. string(23) "The last content string"
  49. }
  50. ===DONE===