From: Felipe Pena Date: Sun, 13 Mar 2011 14:21:58 +0000 (+0000) Subject: - Fixed bug #54242 (dba_insert returns true if key already exists) X-Git-Tag: php-5.4.0alpha1~191^2~169 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5500c1cc17eca488cb16bc9dc07dbaba7b4a9306;p=php - Fixed bug #54242 (dba_insert returns true if key already exists) --- 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; } }