80_bug14383.phpt 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --TEST--
  2. Bug #14383 (8.0+) (using postgres with DBA causes DBA not to be able to find any keys)
  3. --SKIPIF--
  4. <?php
  5. require_once(dirname(__FILE__).'/../../dba/tests/skipif.inc');
  6. require_once('skipif.inc');
  7. ?>
  8. --FILE--
  9. <?php
  10. require_once('config.inc');
  11. $dbh = @pg_connect($conn_str);
  12. if (!$dbh) {
  13. die ("Could not connect to the server");
  14. }
  15. pg_close($dbh);
  16. require_once(dirname(__FILE__).'/../../dba/tests/test.inc');
  17. require_once(dirname(__FILE__).'/../../dba/tests/dba_handler.inc');
  18. ?>
  19. --EXPECTF--
  20. database handler: %s
  21. 3NYNYY
  22. Content String 2
  23. Content 2 replaced
  24. Read during write:%sallowed
  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. --NO-LOCK--
  36. 3NYNYY
  37. Content String 2
  38. Content 2 replaced
  39. Read during write: not allowed
  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. }