xref: /PHP-5.6/ext/dba/tests/bug49125.phpt (revision 7b329d5a)
1--TEST--
2Bug #49125 (Error in dba_exists C code)
3--SKIPIF--
4<?php
5	$handler = 'db4';
6	require_once(dirname(__FILE__) .'/skipif.inc');
7?>
8--FILE--
9<?php
10
11error_reporting(E_ALL);
12
13$handler = 'db4';
14require_once(dirname(__FILE__) .'/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(dirname(__FILE__) .'/clean.inc');
28?>
29--EXPECT--
30bool(true)
31