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