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