xref: /PHP-7.3/ext/dba/tests/bug72885.phpt (revision 782352c5)
1--TEST--
2Bug #72885 flatfile: dba_fetch() fails to read replaced entry
3--SKIPIF--
4<?php
5$handler = "flatfile";
6require_once(dirname(__FILE__) .'/skipif.inc');
7?>
8--FILE--
9<?php
10
11require_once(dirname(__FILE__) .'/test.inc');
12
13$db = dba_open($db_filename, 'c', 'flatfile');
14dba_insert('foo', 'bar', $db);
15var_dump(dba_replace('foo', 'baz', $db));
16var_dump(dba_fetch('foo', $db));
17dba_close($db);
18
19?>
20===DONE===
21--CLEAN--
22<?php
23require_once(dirname(__FILE__) .'/clean.inc');
24?>
25--EXPECT--
26bool(true)
27string(3) "baz"
28===DONE===
29