php-src/ext/dba/tests/dba001.phpt
2010-03-05 00:23:26 +00:00

26 lines
532 B
PHP

--TEST--
DBA File Creation Test
--SKIPIF--
<?php
require_once(dirname(__FILE__) .'/skipif.inc');
die("info $HND handler used");
?>
--FILE--
<?php
require_once(dirname(__FILE__) .'/test.inc');
echo "database handler: $handler\n";
if (($db_file=dba_open($db_file, "n", $handler))!==FALSE) {
echo "database file created\n";
dba_close($db_file);
} else {
echo "$db_file does not exist\n";
}
?>
--CLEAN--
<?php
require(dirname(__FILE__) .'/clean.inc');
?>
--EXPECTF--
database handler: %s
database file created