xref: /PHP-8.1/ext/dba/tests/bug49125.phpt (revision b5a14e6c)
1--TEST--
2Bug #49125 (Error in dba_exists C code)
3--EXTENSIONS--
4dba
5--SKIPIF--
6<?php
7    $handler = 'db4';
8    require_once(__DIR__ .'/skipif.inc');
9?>
10--FILE--
11<?php
12
13error_reporting(E_ALL);
14
15$handler = 'db4';
16require_once(__DIR__ .'/test.inc');
17
18$db = dba_popen($db_filename, 'c', 'db4');
19
20dba_insert('foo', 'foo', $db);
21
22var_dump(dba_exists('foo', $db));
23
24dba_close($db);
25
26?>
27--CLEAN--
28<?php
29    require(__DIR__ .'/clean.inc');
30?>
31--EXPECT--
32bool(true)
33