summaryrefslogtreecommitdiff
path: root/ext/dba/tests/test.inc
blob: 402096dbe961d5dbae08c1ecce5b1d5435c6646f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
	$db_filename = $db_file = dirname(__FILE__).'/test0.dbm';
	$handler = dba_handlers(); 
	if (in_array('flatfile', $handler)) {
		$handler = 'flatfile';
	} elseif ($handler[0]=='cdb') { // CDB currently supports only reading 
		if (count($handler)==1) {
			die('CDB currently supports only reading ');
		}
		$handler = $handler[1];
	} else {
		$handler = $handler[0];
	}
	$lock_flag = 'l';
	@unlink($db_filename);
	@unlink($db_filename.'.lck');
?>