1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/ext/dba/tests/dba_flags_arg.phpt
2022-07-26 00:25:39 +01:00

15 lines
282 B
PHP

--TEST--
DBA new flags ValueError test
--EXTENSIONS--
dba
--FILE--
<?php
try {
dba_open('irrelevant', 'c', 'handler', flags: -1);
} catch (\ValueError $e) {
echo $e->getMessage(), \PHP_EOL;
}
?>
--EXPECT--
dba_open(): Argument #6 ($flags) must be greater than or equal to 0