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