]> granicus.if.org Git - php/commitdiff
- Fix infile return on duplicated key (related to bug #54242)
authorFelipe Pena <felipe@php.net>
Sun, 13 Mar 2011 14:57:19 +0000 (14:57 +0000)
committerFelipe Pena <felipe@php.net>
Sun, 13 Mar 2011 14:57:19 +0000 (14:57 +0000)
ext/dba/dba_inifile.c

index d018a0114994d4c9c48127947753216781f4081a..4103f50a661bb293bfdc0d1e899db63781ec254e 100644 (file)
@@ -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;
        }
 }