xref: /PHP-8.1/ext/dba/tests/dba_qdbm.phpt (revision b5a14e6c)
1--TEST--
2DBA QDBM handler test
3--EXTENSIONS--
4dba
5--SKIPIF--
6<?php
7    $handler = 'qdbm';
8    require_once __DIR__ .'/skipif.inc';
9?>
10--FILE--
11<?php
12    $handler = 'qdbm';
13    require_once __DIR__ .'/test.inc';
14    $lock_flag = ''; // lock in library
15    require_once __DIR__ .'/dba_handler.inc';
16?>
17--CLEAN--
18<?php
19    require(__DIR__ .'/clean.inc');
20?>
21--EXPECTF--
22database handler: qdbm
233NYNYY
24Content String 2
25Content 2 replaced
26Read during write:%sallowed
27"key number 6" written
28Failed to write "key number 6" 2nd time
29Content 2 replaced 2nd time
30The 6th value
31array(3) {
32  ["key number 6"]=>
33  string(13) "The 6th value"
34  ["key2"]=>
35  string(27) "Content 2 replaced 2nd time"
36  ["key5"]=>
37  string(23) "The last content string"
38}
39