1--TEST-- 2DBA DB4 Sync Test 3--EXTENSIONS-- 4dba 5--CONFLICTS-- 6dba 7--SKIPIF-- 8<?php 9$handler = "db4"; 10require_once(__DIR__ .'/skipif.inc'); 11die("info $HND handler used"); 12?> 13--FILE-- 14<?php 15$handler = "db4"; 16require_once(__DIR__ .'/test.inc'); 17echo "database handler: $handler\n"; 18if (($db_file=dba_open($db_filename, "n", $handler))!==FALSE) { 19 dba_insert("key1", "Content String 1", $db_file); 20 dba_insert("key2", "Content String 2", $db_file); 21 for ($i=1; $i<3; $i++) { 22 echo dba_exists("key$i", $db_file) ? "Y" : "N"; 23 } 24 echo "\n"; 25 var_dump(dba_sync($db_file)); 26 dba_close($db_file); 27} else { 28 echo "Error creating database\n"; 29} 30 31?> 32--CLEAN-- 33<?php 34require(__DIR__ .'/clean.inc'); 35?> 36--EXPECT-- 37database handler: db4 38YY 39bool(true) 40