xref: /PHP-5.6/ext/dba/tests/dba_qdbm.phpt (revision eb40f73c)
1--TEST--
2DBA QDBM handler test
3--SKIPIF--
4<?php
5	$handler = 'qdbm';
6	require_once dirname(__FILE__) .'/skipif.inc';
7?>
8--FILE--
9<?php
10	$handler = 'qdbm';
11	require_once dirname(__FILE__) .'/test.inc';
12	$lock_flag = ''; // lock in library
13	require_once dirname(__FILE__) .'/dba_handler.inc';
14?>
15===DONE===
16--EXPECTF--
17database handler: qdbm
183NYNYY
19Content String 2
20Content 2 replaced
21Read during write:%sallowed
22"key number 6" written
23Failed to write "key number 6" 2nd time
24Content 2 replaced 2nd time
25The 6th value
26array(3) {
27  ["key number 6"]=>
28  string(13) "The 6th value"
29  ["key2"]=>
30  string(27) "Content 2 replaced 2nd time"
31  ["key5"]=>
32  string(23) "The last content string"
33}
34
35Warning: dba_popen(%stest0.dbm,r-): Locking cannot be disabled for handler qdbm in %sdba_handler.inc on line %d
36===DONE===
37