Skip to content

Commit 1c3e392

Browse files
committed
ext/dba/tests/gh16390.phpt: skip if inifile is disabled
This test reads an ini "file" from a string, and expects a warning about locking. But if inifile support is disabled, then you'll get Warning: dba_open(): Handler "inifile" is not available in /path/to/ext/dba/tests/gh16390.php on line 3 instead. We skip the test if inifile support is disabled.
1 parent 514cd20 commit 1c3e392

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ext/dba/tests/gh16390.phpt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
GH-16390 (dba_open() can segfault for "pathless" streams)
33
--EXTENSIONS--
44
dba
5+
--SKIPIF--
6+
<?php
7+
require_once __DIR__ . '/setup/setup_dba_tests.inc';
8+
check_skip('inifile');
9+
?>
510
--FILE--
611
<?php
712
$file = 'data:text/plain;z=y;uri=eviluri;mediatype=wut?;mediatype2=hello,somedata';

0 commit comments

Comments
 (0)