xref: /PHP-8.1/ext/dba/tests/bug48240.phpt (revision b5a14e6c)
1--TEST--
2Bug #48240 (DBA Segmentation fault dba_nextkey)
3--EXTENSIONS--
4dba
5--SKIPIF--
6<?php
7    $handler = 'db4';
8    require_once(__DIR__ .'/skipif.inc');
9?>
10--FILE--
11<?php
12
13$handler = 'db4';
14require_once(__DIR__ .'/test.inc');
15
16$db = dba_open($db_filename, 'c', 'db4');
17
18var_dump(dba_nextkey($db));
19
20dba_close($db);
21
22?>
23--CLEAN--
24<?php
25    require(__DIR__ .'/clean.inc');
26?>
27--EXPECT--
28bool(false)
29