xref: /PHP-8.0/ext/dba/tests/dba_db4_000.phpt (revision a555cc0b)
1--TEST--
2DBA DB4 handler test
3--SKIPIF--
4<?php
5$handler = 'db4';
6require_once(__DIR__ .'/skipif.inc');
7?>
8--FILE--
9<?php
10$handler = 'db4';
11require_once(__DIR__ .'/test.inc');
12require_once(__DIR__ .'/dba_handler.inc');
13?>
14--CLEAN--
15<?php
16require(__DIR__ .'/clean.inc');
17?>
18--EXPECT--
19database handler: db4
203NYNYY
21Content String 2
22Content 2 replaced
23Read during write: not allowed
24"key number 6" written
25Failed to write "key number 6" 2nd time
26Content 2 replaced 2nd time
27The 6th value
28array(3) {
29  ["key number 6"]=>
30  string(13) "The 6th value"
31  ["key2"]=>
32  string(27) "Content 2 replaced 2nd time"
33  ["key5"]=>
34  string(23) "The last content string"
35}
36--NO-LOCK--
373NYNYY
38Content String 2
39Content 2 replaced
40Read during write: not allowed
41"key number 6" written
42Failed to write "key number 6" 2nd time
43Content 2 replaced 2nd time
44The 6th value
45array(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}
53