summaryrefslogtreecommitdiff
path: root/ext/dba/tests/dba016.phpt
blob: 4b0052352a9f4964ec8bf2fb5f8dfc73cd19a299 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--TEST--
DBA lock modifier error message test
--SKIPIF--
<?php
$handler = "flatfile";
require_once(dirname(__FILE__) .'/skipif.inc');
?>
--FILE--
<?php

$handler = "flatfile";
require_once(dirname(__FILE__) .'/test.inc');
echo "database handler: $handler\n";

$db_file1 = dba_popen($db_filename, 'n-t', 'flatfile');

?>
===DONE===
--CLEAN--
<?php
	require(dirname(__FILE__) .'/clean.inc');
?>
--EXPECTF--
database handler: flatfile

Warning: dba_popen(%stest0.dbm,n-t): You cannot combine modifiers - (no lock) and t (test lock) in %sdba016.php on line %d
===DONE===