diff options
| author | Felipe Pena <felipe@php.net> | 2011-03-17 11:43:05 +0000 | 
|---|---|---|
| committer | Felipe Pena <felipe@php.net> | 2011-03-17 11:43:05 +0000 | 
| commit | 2b8d0edb45bb925a5880e8874fca1ff16587a71d (patch) | |
| tree | 02fd634ac9bdf7a2c49342bb89c203a501209433 | |
| parent | 5fb54640c9364bae23e93c69dd0651959ae20002 (diff) | |
| download | php-git-2b8d0edb45bb925a5880e8874fca1ff16587a71d.tar.gz | |
- Fix infile return on duplicated key (related to bug #54242)
| -rw-r--r-- | ext/dba/dba_flatfile.c | 2 | ||||
| -rw-r--r-- | ext/dba/dba_inifile.c | 2 | 
2 files changed, 2 insertions, 2 deletions
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;  	}  }  | 
