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