xref: /PHP-8.0/ext/dba/tests/gh9155.phpt (revision a442e294)
1--TEST--
2Bug GH-9155 (dba_open("non-existing", "c-", "flatfile") segfaults)
3--SKIPIF--
4<?php
5$handler = "flatfile";
6require_once(__DIR__ .'/skipif.inc');
7?>
8--FILE--
9<?php
10
11require_once(__DIR__ .'/test.inc');
12
13$db = dba_open($db_filename, 'c-', 'flatfile');
14var_dump($db);
15?>
16--CLEAN--
17<?php
18require_once(__DIR__ .'/clean.inc');
19?>
20--EXPECTF--
21resource(%d) of type (dba)
22