1--TEST-- 2Bug #62490 (dba_delete returns true on missing item (inifile)) 3--EXTENSIONS-- 4dba 5--SKIPIF-- 6<?php 7$handler = "inifile"; 8include "skipif.inc"; 9?> 10--FILE-- 11<?php 12$handler = "inifile"; 13include "test.inc"; 14 15$dba = dba_open($db_filename, "n", $handler) 16 or die; 17for ($i = 0; $i < 3; ++$i) { 18 echo "insert $i:"; 19 var_dump(dba_insert("a", $i, $dba)); 20} 21 22echo "exists:"; 23var_dump(dba_exists("a", $dba)); 24echo "delete:"; 25var_dump(dba_delete("a", $dba)); 26echo "exists:"; 27var_dump(dba_exists("a", $dba)); 28echo "delete:"; 29var_dump(dba_delete("a", $dba)); 30 31?> 32--CLEAN-- 33<?php 34include "clean.inc"; 35?> 36--EXPECT-- 37insert 0:bool(true) 38insert 1:bool(true) 39insert 2:bool(true) 40exists:bool(true) 41delete:bool(true) 42exists:bool(false) 43delete:bool(false) 44