2002-10-25 09:42:29 +00:00
|
|
|
--TEST--
|
|
|
|
DBA File Creation Test
|
|
|
|
--SKIPIF--
|
|
|
|
<?php
|
|
|
|
require_once('skipif.inc');
|
2002-11-15 15:58:09 +00:00
|
|
|
die("info $HND handler used");
|
2002-10-25 09:42:29 +00:00
|
|
|
?>
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
require_once('test.inc');
|
2002-11-01 14:21:36 +00:00
|
|
|
echo "database handler: $handler\n";
|
2002-10-25 09:42:29 +00:00
|
|
|
if (($db_file=dba_open($db_file, "n", $handler))!==FALSE) {
|
2002-11-01 14:21:36 +00:00
|
|
|
echo "database file created\n";
|
|
|
|
dba_close($db_file);
|
2002-10-25 09:42:29 +00:00
|
|
|
} else {
|
|
|
|
echo "$db_file does not exist\n";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
--EXPECTF--
|
2002-11-01 14:21:36 +00:00
|
|
|
database handler: %s
|
|
|
|
database file created
|