From 5500c1cc17eca488cb16bc9dc07dbaba7b4a9306 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sun, 13 Mar 2011 14:21:58 +0000 Subject: [PATCH] - Fixed bug #54242 (dba_insert returns true if key already exists) --- ext/dba/dba_flatfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/dba/dba_flatfile.c b/ext/dba/dba_flatfile.c index 556ab1e93e..94a21b09cf 100644 --- a/ext/dba/dba_flatfile.c +++ b/ext/dba/dba_flatfile.c @@ -96,7 +96,7 @@ DBA_UPDATE_FUNC(flatfile) return SUCCESS; case 1: php_error_docref1(NULL TSRMLS_CC, key, E_WARNING, "Key already exists"); - return SUCCESS; + return FAILURE; } } -- 2.50.1