php-src/ext/db/tests/003.phpt

16 lines
335 B
Plaintext
Raw Normal View History

--TEST--
DBM Insert/Replace/Fetch Test
--POST--
--GET--
--FILE--
<?php
dbmopen("./test.dbm","n");
dbminsert("./test.dbm","key1","This is a test insert");
dbmreplace("./test.dbm","key1","This is the replacement text");
$a = dbmfetch("./test.dbm","key1");
dbmclose("./test.dbm");
echo $a
?>
--EXPECT--
This is the replacement text