Skip to content

Commit def271a

Browse files
orlitzkynielsdos
authored andcommitted
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. Closes GH-17011.
1 parent ddbd396 commit def271a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? ????, PHP 8.3.16
44

5+
- DBA:
6+
. Skip test if inifile is disabled. (orlitzky)
7+
58
- Iconv:
69
. Fixed bug GH-17047 (UAF on iconv filter failure). (nielsdos)
710

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)