From: Felipe Pena Date: Thu, 17 Mar 2011 11:43:05 +0000 (+0000) Subject: - Fix infile return on duplicated key (related to bug #54242) X-Git-Tag: php-5.3.7RC1~239 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b8d0edb45bb925a5880e8874fca1ff16587a71d;p=php - Fix infile return on duplicated key (related to bug #54242) --- 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; } } diff --git a/ext/dba/dba_inifile.c b/ext/dba/dba_inifile.c index d018a01149..4103f50a66 100644 --- a/ext/dba/dba_inifile.c +++ b/ext/dba/dba_inifile.c @@ -102,7 +102,7 @@ DBA_UPDATE_FUNC(inifile) return SUCCESS; case 1: php_error_docref1(NULL TSRMLS_CC, key, E_WARNING, "Key already exists"); - return SUCCESS; + return FAILURE; } }