Bug #62490 [Ver->Csd]: dba_delete returns true on missing item (inifile)

From: Date: Thu, 05 Dec 2013 10:28:07 +0000
Subject: Bug #62490 [Ver->Csd]: dba_delete returns true on missing item (inifile)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183126@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62490&edit=1 ID: 62490 Updated by: mike@php.net Reported by: marc-bennewitz at arcor dot de Summary: dba_delete returns true on missing item (inifile) -Status: Verified +Status: Closed Type: Bug Package: DBM/DBA related Operating System: openSUSE 11.3 (x86_64) PHP Version: 5.4.4 Block user comment: N Private report: N New Comment: Automatic comment on behalf of mike Revision: http://git.php.net/?p=php-src.git;a=commit;h=5a420c868083d741d969812b1b6ac2dc380cd1e3 Log: fix bug #62490 Previous Comments: ------------------------------------------------------------------------ [2012-07-06 08:47:22] marc-bennewitz at arcor dot de Description: ------------ The function "dba_delete" returns true on delete a non-existing item using inifile handler. I tested flatfile, inifile, gdbm, qdbm and db4. All other hander not tested. Test script: --------------- $dba = dba_open(sys_get_temp_dir() . DIRECTORY_SEPARATOR . uniqid('dba_'), 'c', 'inifile'); var_dump(dba_delete('unknown', $dba)); Expected result: ---------------- bool(false) Actual result: -------------- bool(true) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62490&edit=1

« previous php.bugs (#183126) next »