Annotation of embedaddon/php/ext/pgsql/tests/80_bug14383.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #14383 (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:
12: $dbh = @pg_connect($conn_str);
13: if (!$dbh) {
14: die ("Could not connect to the server");
15: }
16: pg_close($dbh);
17:
18: require_once(dirname(__FILE__).'/../../dba/tests/test.inc');
19: require_once(dirname(__FILE__).'/../../dba/tests/dba_handler.inc');
20:
21: ?>
22: --EXPECTF--
23: database handler: %s
24: 3NYNYY
25: Content String 2
26: Content 2 replaced
27: Read during write:%sallowed
28: Content 2 replaced 2nd time
29: The 6th value
30: array(3) {
31: ["key number 6"]=>
32: string(13) "The 6th value"
33: ["key2"]=>
34: string(27) "Content 2 replaced 2nd time"
35: ["key5"]=>
36: string(23) "The last content string"
37: }
38: --NO-LOCK--
39: 3NYNYY
40: Content String 2
41: Content 2 replaced
42: Read during write: not allowed
43: Content 2 replaced 2nd time
44: The 6th value
45: array(3) {
46: ["key number 6"]=>
47: string(13) "The 6th value"
48: ["key2"]=>
49: string(27) "Content 2 replaced 2nd time"
50: ["key5"]=>
51: string(23) "The last content string"
52: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>