xref: /PHP-8.0/ext/dba/tests/bug72885.phpt (revision a555cc0b)
1--TEST--
2Bug #72885 flatfile: dba_fetch() fails to read replaced entry
3--SKIPIF--
4<?php
5$handler = "flatfile";
6require_once(__DIR__ .'/skipif.inc');
7?>
8--FILE--
9<?php
10
11require_once(__DIR__ .'/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--CLEAN--
21<?php
22require_once(__DIR__ .'/clean.inc');
23?>
24--EXPECT--
25bool(true)
26string(3) "baz"
27