|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-01-15 08:39 UTC] lstrojny@php.net
[2013-01-15 08:39 UTC] lstrojny@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: lstrojny
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 05:00:01 2025 UTC |
Description: ------------ The function "dba_insert" doesn't work as expected with most handlers. On calling "dba_insert" on an already existing key the function should return false and do not trigger a warning but that's not the case on most tested handlers. Test script: --------------- $dba = dba_open(sys_get_temp_dir() . DIRECTORY_SEPARATOR . uniqid('dba_'), 'c', 'qdbm'); var_dump(dba_insert('key', 'test1', $dba)); var_dump(dba_insert('key', 'test2', $dba)); var_dump(dba_fetch('key', $dba)); Expected result: ---------------- bool(true) bool(false) string(5) "test1" Actual result: -------------- RETURN1 RETURN2 WRANING flatfile true false YES inifile true true NO gdbm true false YES qdbm true false YES db4 true false NO -> Didn't test not listed handlers !