summaryrefslogtreecommitdiff
path: root/ext/dba/tests/dba001.phpt
blob: b63829abbf211dedc1e2d01f85614e421ada1fd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--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