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