xref: /PHP-7.4/ext/dba/tests/dba016.phpt (revision 26dfce7f)
1--TEST--
2DBA lock modifier error message test
3--SKIPIF--
4<?php
5$handler = "flatfile";
6require_once(__DIR__ .'/skipif.inc');
7?>
8--FILE--
9<?php
10
11$handler = "flatfile";
12require_once(__DIR__ .'/test.inc');
13echo "database handler: $handler\n";
14
15$db_file1 = dba_popen($db_filename, 'n-t', 'flatfile');
16
17?>
18===DONE===
19--CLEAN--
20<?php
21	require(__DIR__ .'/clean.inc');
22?>
23--EXPECTF--
24database handler: flatfile
25
26Warning: dba_popen(%stest0.dbm,n-t): You cannot combine modifiers - (no lock) and t (test lock) in %sdba016.php on line %d
27===DONE===
28