1--TEST-- 2DBA DB4 file creation dba_open("cd") 3--EXTENSIONS-- 4dba 5--SKIPIF-- 6<?php 7$handler = "db4"; 8require_once(__DIR__ .'/skipif.inc'); 9?> 10--FILE-- 11<?php 12 13$handler = "db4"; 14require_once(__DIR__ .'/test.inc'); 15echo "database handler: $handler\n"; 16 17if (($db_file = dba_open($db_filename, "cd", $handler)) !== FALSE) { 18 if (file_exists($db_filename)) { 19 echo "database file created\n"; 20 var_dump(dba_insert("key1", "This is a test insert", $db_file)); 21 echo dba_fetch("key1", $db_file), "\n"; 22 dba_close($db_file); 23 } else { 24 echo "File did not get created\n"; 25 } 26} else { 27 echo "Error creating $db_filename\n"; 28} 29 30?> 31--CLEAN-- 32<?php 33require(__DIR__ .'/clean.inc'); 34?> 35--EXPECT-- 36database handler: db4 37database file created 38bool(true) 39This is a test insert 40