xref: /php-src/ext/dba/tests/gh16390.phpt (revision d3b0efe9)
1--TEST--
2GH-16390 (dba_open() can segfault for "pathless" streams)
3--EXTENSIONS--
4dba
5--FILE--
6<?php
7$file = 'data:text/plain;z=y;uri=eviluri;mediatype=wut?;mediatype2=hello,somedata';
8$db = dba_open($file, 'c', 'inifile');
9?>
10--EXPECTF--
11Warning: dba_open(): Driver initialization failed for handler: inifile: Unable to determine path for locking in %s on line %d
12