xref: /PHP-8.1/ext/dba/tests/dba_db4_000.phpt (revision b5a14e6c)
1--TEST--
2DBA DB4 handler test
3--EXTENSIONS--
4dba
5--SKIPIF--
6<?php
7$handler = 'db4';
8require_once(__DIR__ .'/skipif.inc');
9?>
10--FILE--
11<?php
12$handler = 'db4';
13require_once(__DIR__ .'/test.inc');
14require_once(__DIR__ .'/dba_handler.inc');
15?>
16--CLEAN--
17<?php
18require(__DIR__ .'/clean.inc');
19?>
20--EXPECT--
21database handler: db4
223NYNYY
23Content String 2
24Content 2 replaced
25Read during write: not allowed
26"key number 6" written
27Failed to write "key number 6" 2nd time
28Content 2 replaced 2nd time
29The 6th value
30array(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--
393NYNYY
40Content String 2
41Content 2 replaced
42Read during write: not allowed
43"key number 6" written
44Failed to write "key number 6" 2nd time
45Content 2 replaced 2nd time
46The 6th value
47array(3) {
48  ["key number 6"]=>
49  string(13) "The 6th value"
50  ["key2"]=>
51  string(27) "Content 2 replaced 2nd time"
52  ["key5"]=>
53  string(23) "The last content string"
54}
55