xref: /PHP-7.4/ext/dba/tests/dba_gdbm.phpt (revision 26dfce7f)
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===DONE===
18--EXPECTF--
19database handler: gdbm
203NYNYY
21Content String 2
22Content 2 replaced
23Read during write:%sallowed
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===DONE===
37