mirror of
https://github.com/php/php-src.git
synced 2024-10-06 17:26:11 +00:00
20 lines
385 B
PHP
20 lines
385 B
PHP
--TEST--
|
|
DBA Insert/Fetch Test
|
|
--SKIPIF--
|
|
<?php
|
|
require_once('skipif.inc');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
require_once('test.inc');
|
|
if (($db_file=dba_open($db_file, "n", $handler))!==FALSE) {
|
|
dba_insert("key1", "This is a test insert", $db_file);
|
|
echo dba_fetch("key1", $db_file);
|
|
dba_close($db_file);
|
|
} else {
|
|
echo "Error creating database\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
This is a test insert
|