Lines Matching refs:err
145 static void _php_iconv_show_error(php_iconv_err_t err, const char *out_charset, const char *in_char…
552 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_strlen() local
598 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_strlen()
602 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_strlen()
611 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_strlen()
617 return err; in _php_iconv_strlen()
628 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_substr() local
642 err = _php_iconv_strlen(&total_len, str, nbytes, enc); in _php_iconv_substr()
643 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_substr()
644 return err; in _php_iconv_substr()
706 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_substr()
708 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_substr()
724 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_substr()
728 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_substr()
734 if (err == PHP_ICONV_ERR_SUCCESS) { in _php_iconv_substr()
748 return err; in _php_iconv_substr()
761 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_strpos() local
783 err = php_iconv_string(ndl, ndl_nbytes, &ndl_buf, GENERIC_SUPERSET_NAME, enc); in _php_iconv_strpos()
785 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_strpos()
789 return err; in _php_iconv_strpos()
823 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_strpos()
827 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_strpos()
834 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_strpos()
895 if (err == PHP_ICONV_ERR_SUCCESS && offset > cnt) { in _php_iconv_strpos()
899 return err; in _php_iconv_strpos()
906 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_mime_encode() local
942 err = PHP_ICONV_ERR_TOO_BIG; in _php_iconv_mime_encode()
949 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_mime_encode()
951 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_mime_encode()
959 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_mime_encode()
961 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_mime_encode()
1017 err = PHP_ICONV_ERR_TOO_BIG; in _php_iconv_mime_encode()
1026 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_mime_encode()
1030 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_mime_encode()
1035 err = PHP_ICONV_ERR_TOO_BIG; in _php_iconv_mime_encode()
1041 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1050 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1058 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1073 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1110 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_mime_encode()
1114 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_mime_encode()
1119 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1125 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1131 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1166 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1189 return err; in _php_iconv_mime_encode()
1196 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_mime_decode() local
1220 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_mime_decode()
1222 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_mime_decode()
1253 err = _php_iconv_appendc(pretval, *p1, cd_pl); in _php_iconv_mime_decode()
1254 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1256 err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_mime_decode()
1274 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1275 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1304 err = _php_iconv_appendl(pretval, csname, (size_t)((p1 + 1) - csname), cd_pl); in _php_iconv_mime_decode()
1305 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1321 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1329 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1330 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1341 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1387 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1388 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1399 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_mime_decode()
1401 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_mime_decode()
1425 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1426 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1437 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1447 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1448 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1459 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1503 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1504 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1515 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1542 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1543 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1571 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1572 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1583 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_decode()
1588 err = _php_iconv_appendl(pretval, ZSTR_VAL(decoded_text), ZSTR_LEN(decoded_text), cd); in _php_iconv_mime_decode()
1589 if (err == PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1590 err = _php_iconv_appendl(pretval, NULL, 0, cd); in _php_iconv_mime_decode()
1594 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1597 err = _php_iconv_appendl(pretval, encoded_word, (size_t)(p1 - encoded_word), cd_pl); in _php_iconv_mime_decode()
1599 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1721 err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_mime_decode()
1723 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1740 return err; in _php_iconv_mime_decode()
1745 static void _php_iconv_show_error(php_iconv_err_t err, const char *out_charset, const char *in_char… in _php_iconv_show_error() argument
1747 switch (err) { in _php_iconv_show_error()
1796 php_iconv_err_t err; in PHP_FUNCTION() local
1812 err = _php_iconv_strlen(&retval, ZSTR_VAL(str), ZSTR_LEN(str), charset); in PHP_FUNCTION()
1813 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset); in PHP_FUNCTION()
1814 if (err == PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
1831 php_iconv_err_t err; in PHP_FUNCTION() local
1852 err = _php_iconv_substr(&retval, ZSTR_VAL(str), ZSTR_LEN(str), offset, length, charset); in PHP_FUNCTION()
1853 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset); in PHP_FUNCTION()
1855 if (err == PHP_ICONV_ERR_SUCCESS && retval.s != NULL) { in PHP_FUNCTION()
1872 php_iconv_err_t err; in PHP_FUNCTION() local
1891 err = _php_iconv_strlen(&haystk_len, ZSTR_VAL(haystk), ZSTR_LEN(haystk), charset); in PHP_FUNCTION()
1892 if (err != PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
1893 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset); in PHP_FUNCTION()
1908 err = _php_iconv_strpos( in PHP_FUNCTION()
1911 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset); in PHP_FUNCTION()
1913 if (err == PHP_ICONV_ERR_SUCCESS && retval != (size_t)-1) { in PHP_FUNCTION()
1929 php_iconv_err_t err; in PHP_FUNCTION() local
1950 err = _php_iconv_strpos( in PHP_FUNCTION()
1953 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset); in PHP_FUNCTION()
1955 if (err == PHP_ICONV_ERR_SUCCESS && retval != (size_t)-1) { in PHP_FUNCTION()
1971 php_iconv_err_t err; in PHP_FUNCTION() local
2043 err = _php_iconv_mime_encode(&retval, ZSTR_VAL(field_name), ZSTR_LEN(field_name), in PHP_FUNCTION()
2046 _php_iconv_show_error(err, out_charset, in_charset); in PHP_FUNCTION()
2048 if (err == PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
2071 php_iconv_err_t err; in PHP_FUNCTION() local
2086 …err = _php_iconv_mime_decode(&retval, ZSTR_VAL(encoded_str), ZSTR_LEN(encoded_str), charset, NULL,… in PHP_FUNCTION()
2087 _php_iconv_show_error(err, charset, "???"); in PHP_FUNCTION()
2089 if (err == PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
2108 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in PHP_FUNCTION() local
2136 …if (PHP_ICONV_ERR_SUCCESS != (err = _php_iconv_mime_decode(&decoded_header, enc_str_tmp, enc_str_l… in PHP_FUNCTION()
2189 if (err != PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
2190 _php_iconv_show_error(err, charset, "???"); in PHP_FUNCTION()
2203 php_iconv_err_t err; in PHP_FUNCTION() local
2216 …err = php_iconv_string(ZSTR_VAL(in_buffer), (size_t)ZSTR_LEN(in_buffer), &out_buffer, out_charset,… in PHP_FUNCTION()
2217 _php_iconv_show_error(err, out_charset, in_charset); in PHP_FUNCTION()
2218 if (err == PHP_ICONV_ERR_SUCCESS && out_buffer != NULL) { in PHP_FUNCTION()