xref: /php-src/ext/dba/tests/gh9155.phpt (revision 2097237d)
1--TEST--
2Bug GH-9155 (dba_open("non-existing", "c-", "flatfile") segfaults)
3--EXTENSIONS--
4dba
5--CONFLICTS--
6dba
7--SKIPIF--
8<?php
9$handler = "flatfile";
10require_once(__DIR__ .'/skipif.inc');
11?>
12--FILE--
13<?php
14
15require_once(__DIR__ .'/test.inc');
16
17$db = dba_open($db_filename, 'c-', 'flatfile');
18var_dump($db);
19?>
20--CLEAN--
21<?php
22require_once(__DIR__ .'/clean.inc');
23?>
24--EXPECTF--
25object(Dba\Connection)#%d (%d) {
26}
27