]> granicus.if.org Git - php/commitdiff
MFB: E_ERROR > E_RECOVERABLE_ERROR
authorIlia Alshanetsky <iliaa@php.net>
Thu, 6 Jul 2006 23:13:41 +0000 (23:13 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 6 Jul 2006 23:13:41 +0000 (23:13 +0000)
ext/dba/dba.c
ext/dba/libinifile/inifile.c

index 3fedbc62230ee993b54fb6c4eaa6bf925bd30d9d..24276dfedf0620795f1ff382a0c96ba067375c8d 100644 (file)
@@ -227,7 +227,7 @@ static size_t php_dba_make_key(zval **key, char **key_str, char **key_free TSRML
                size_t len;
        
                if (zend_hash_num_elements(Z_ARRVAL_PP(key)) != 2) {
-                       php_error_docref(NULL TSRMLS_CC, E_ERROR, "Key does not have exactly two elements: (key, name)");
+                       php_error_docref(NULL TSRMLS_CC, E_RECOVERABLE_ERROR, "Key does not have exactly two elements: (key, name)");
                        return -1;
                }
                zend_hash_internal_pointer_reset_ex(Z_ARRVAL_PP(key), &pos);
index e74eef7f47bc767ab38e9f734acbfb4b6de28990..191aa3697f8d9d8f21bfa003d709c16d4a7c5367 100644 (file)
@@ -537,7 +537,7 @@ static int inifile_delete_replace_append(inifile *dba, const key_type *key, cons
                        php_stream_seek(fp_tmp, 0, SEEK_SET);
                        php_stream_seek(dba->fp, 0, SEEK_END);
                        if (!php_stream_copy_to_stream(fp_tmp, dba->fp, PHP_STREAM_COPY_ALL)) {
-                               php_error_docref(NULL TSRMLS_CC, E_ERROR, "Could not copy from temporary stream - ini file truncated");
+                               php_error_docref(NULL TSRMLS_CC, E_RECOVERABLE_ERROR, "Could not copy from temporary stream - ini file truncated");
                                ret = FAILURE;
                        }
                }