summaryrefslogtreecommitdiff
path: root/ext/dba/tests/bug36436.phpt
blob: fe625b62bc6b4c0be4f0128a4b7d34b828f93875 (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
31
32
33
34
35
--TEST--
Bug #36436 (DBA problem with Berkeley DB4)
--SKIPIF--
<?php
	$handler = 'db4';
	require_once(__DIR__ .'/skipif.inc');
?>
--FILE--
<?php

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

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

dba_insert('X', 'XYZ', $db);
dba_insert('Y', '123', $db);

var_dump($db, dba_fetch('X', $db));

var_dump(dba_firstkey($db));
var_dump(dba_nextkey($db));

dba_close($db);

?>
--CLEAN--
<?php
	require(__DIR__ .'/clean.inc');
?>
--EXPECTF--
resource(%d) of type (dba persistent)
string(3) "XYZ"
string(1) "X"
string(1) "Y"