summaryrefslogtreecommitdiff
path: root/ext/dba/tests/bug49125.phpt
blob: c1ecc50846e7bdb08a6b96ff619c45da555b365a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--TEST--
Bug #49125 (Error in dba_exists C code)
--SKIPIF--
<?php
	$handler = 'db4';
	require_once(dirname(__FILE__) .'/skipif.inc');
?>
--FILE--
<?php

error_reporting(E_ALL);

$handler = 'db4';
require_once(dirname(__FILE__) .'/test.inc');

$db = dba_popen($db_filename, 'c', 'db4');

dba_insert('foo', 'foo', $db);

var_dump(dba_exists('foo', $db));

dba_close($db);

?>
--CLEAN--
<?php
	require(dirname(__FILE__) .'/clean.inc');
?>
--EXPECT--
bool(true)