php-src/ext/dba/tests/dba_gdbm.phpt
Marcus Boerger 4f636c6b3b Add $lock_flag which allows to change lock behaviour for both 'l' and 'd'
Remember gdbm has its own locking so 't' does not work here - maybe a
warning is needed for that, too.
2002-11-10 22:56:29 +00:00

30 lines
614 B
PHP

--TEST--
DBA GDBM handler test
--SKIPIF--
<?php
require_once('skipif.inc');
if (!in_array('gdbm', dba_handlers())) die('skip GDBM handler not available');
?>
--FILE--
<?php
require_once('test.inc');
$handler = 'gdbm';
$lock_flag = ''; // lock in library
require_once('dba_handler.inc');
?>
--EXPECT--
database handler: gdbm
3NYNYY
Content String 2
Content 2 replaced
Read during write permitted
Content 2 replaced 2nd time
The 6th value
array(3) {
["key number 6"]=>
string(13) "The 6th value"
["key2"]=>
string(27) "Content 2 replaced 2nd time"
["key5"]=>
string(23) "The last content string"
}