80_bug14383.phpt 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --TEST--
  2. Bug #14383 (8.0+) (using postgres with DBA causes DBA not to be able to find any keys)
  3. --EXTENSIONS--
  4. dba
  5. pgsql
  6. --SKIPIF--
  7. <?php
  8. require_once(__DIR__.'/../../dba/tests/skipif.inc');
  9. require_once('skipif.inc');
  10. ?>
  11. --FILE--
  12. <?php
  13. require_once('config.inc');
  14. $dbh = @pg_connect($conn_str);
  15. if (!$dbh) {
  16. die ("Could not connect to the server");
  17. }
  18. pg_close($dbh);
  19. require_once(__DIR__.'/../../dba/tests/test.inc');
  20. require_once(__DIR__.'/../../dba/tests/dba_handler.inc');
  21. ?>
  22. --CLEAN--
  23. <?php
  24. require_once(__DIR__.'/../../dba/tests/clean.inc');
  25. ?>
  26. --EXPECTF--
  27. database handler: %s
  28. 3NYNYY
  29. Content String 2
  30. Content 2 replaced
  31. Read during write:%sallowed
  32. "key number 6" written
  33. Failed to write "key number 6" 2nd time
  34. Content 2 replaced 2nd time
  35. The 6th value
  36. array(3) {
  37. ["key number 6"]=>
  38. string(13) "The 6th value"
  39. ["key2"]=>
  40. string(27) "Content 2 replaced 2nd time"
  41. ["key5"]=>
  42. string(23) "The last content string"
  43. }
  44. --NO-LOCK--
  45. 3NYNYY
  46. Content String 2
  47. Content 2 replaced
  48. Read during write: not allowed
  49. "key number 6" written
  50. Failed to write "key number 6" 2nd time
  51. Content 2 replaced 2nd time
  52. The 6th value
  53. array(3) {
  54. ["key number 6"]=>
  55. string(13) "The 6th value"
  56. ["key2"]=>
  57. string(27) "Content 2 replaced 2nd time"
  58. ["key5"]=>
  59. string(23) "The last content string"
  60. }