]> granicus.if.org Git - php/commitdiff
use constants instead of their values
authorAntony Dovgal <tony2001@php.net>
Thu, 20 Oct 2005 16:50:43 +0000 (16:50 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 20 Oct 2005 16:50:43 +0000 (16:50 +0000)
ext/iconv/iconv.c

index afa6b3b8165a99cd333a4aa629f215cbe3aff319..4ad189587ea3f920a17a1e99b0d681f3c12de6b0 100644 (file)
@@ -1245,7 +1245,7 @@ static php_iconv_err_t _php_iconv_mime_decode(smart_str *pretval, const char *st
        const char *encoded_word = NULL;
        const char *spaces = NULL;
 
-       php_iconv_enc_scheme_t enc_scheme = 0;
+       php_iconv_enc_scheme_t enc_scheme = PHP_ICONV_ENC_SCHEME_BASE64;
 
        if (next_pos != NULL) {
                *next_pos = NULL;
@@ -1704,7 +1704,7 @@ static php_iconv_err_t _php_iconv_mime_decode(smart_str *pretval, const char *st
                                if (scan_stat == 1) {
                                        _php_iconv_appendc(pretval, '=', cd_pl);
                                }
-                               err = 0;
+                               err = PHP_ICONV_ERR_SUCCESS;
                        } else {
                                err = PHP_ICONV_ERR_MALFORMED;
                                goto out;
@@ -2079,7 +2079,7 @@ PHP_FUNCTION(iconv_mime_decode_headers)
        int charset_len;
        long mode = 0;
        
-       php_iconv_err_t err = 0;
+       php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS;
 
        charset = ICONVG(internal_encoding);