Lines Matching refs:err
198 static void _php_iconv_show_error(php_iconv_err_t err, const char *out_charset, const char *in_char…
716 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_strlen() local
767 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_strlen()
771 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_strlen()
780 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_strlen()
789 return err; in _php_iconv_strlen()
800 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_substr() local
814 err = _php_iconv_strlen(&total_len, str, nbytes, enc); in _php_iconv_substr()
815 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_substr()
816 return err; in _php_iconv_substr()
888 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_substr()
890 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_substr()
893 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_substr()
910 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_substr()
914 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_substr()
921 if (err == PHP_ICONV_ERR_SUCCESS) { in _php_iconv_substr()
935 return err; in _php_iconv_substr()
948 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_strpos() local
970 err = php_iconv_string(ndl, ndl_nbytes, &ndl_buf, GENERIC_SUPERSET_NAME, enc); in _php_iconv_strpos()
972 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_strpos()
976 return err; in _php_iconv_strpos()
1015 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_strpos()
1019 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_strpos()
1026 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_strpos()
1124 return err; in _php_iconv_strpos()
1131 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_mime_encode() local
1167 err = PHP_ICONV_ERR_TOO_BIG; in _php_iconv_mime_encode()
1175 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_mime_encode()
1177 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_mime_encode()
1180 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1189 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_mime_encode()
1191 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_mime_encode()
1194 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1250 err = PHP_ICONV_ERR_TOO_BIG; in _php_iconv_mime_encode()
1260 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_mime_encode()
1264 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_mime_encode()
1269 err = PHP_ICONV_ERR_TOO_BIG; in _php_iconv_mime_encode()
1275 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1280 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1291 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1296 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1305 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1320 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1361 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_mime_encode()
1365 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_mime_encode()
1370 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1376 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1381 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1392 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1397 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1433 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1456 return err; in _php_iconv_mime_encode()
1463 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_mime_decode() local
1488 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_mime_decode()
1490 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_mime_decode()
1493 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_decode()
1524 err = _php_iconv_appendc(pretval, *p1, cd_pl); in _php_iconv_mime_decode()
1525 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1527 err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_mime_decode()
1545 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1546 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1575 err = _php_iconv_appendl(pretval, csname, (size_t)((p1 + 1) - csname), cd_pl); in _php_iconv_mime_decode()
1576 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1592 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1600 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1601 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1612 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1658 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1659 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1671 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_mime_decode()
1673 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_mime_decode()
1676 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_decode()
1700 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1701 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1712 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1722 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1723 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1734 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1778 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1779 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1790 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1815 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1816 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1844 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1845 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1856 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_decode()
1861 err = _php_iconv_appendl(pretval, ZSTR_VAL(decoded_text), ZSTR_LEN(decoded_text), cd); in _php_iconv_mime_decode()
1864 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1867 err = _php_iconv_appendl(pretval, encoded_word, (size_t)(p1 - encoded_word), cd_pl); in _php_iconv_mime_decode()
1869 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1991 err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_mime_decode()
1993 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
2017 return err; in _php_iconv_mime_decode()
2022 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
2024 switch (err) { in _php_iconv_show_error()
2070 php_iconv_err_t err; in PHP_FUNCTION() local
2084 err = _php_iconv_strlen(&retval, ZSTR_VAL(str), ZSTR_LEN(str), charset); in PHP_FUNCTION()
2085 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset); in PHP_FUNCTION()
2086 if (err == PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
2103 php_iconv_err_t err; in PHP_FUNCTION() local
2122 err = _php_iconv_substr(&retval, ZSTR_VAL(str), ZSTR_LEN(str), offset, length, charset); in PHP_FUNCTION()
2123 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset); in PHP_FUNCTION()
2125 if (err == PHP_ICONV_ERR_SUCCESS && ZSTR_LEN(str) >= 0 && retval.s != NULL) { in PHP_FUNCTION()
2143 php_iconv_err_t err; in PHP_FUNCTION() local
2160 err = _php_iconv_strlen(&haystk_len, ZSTR_VAL(haystk), ZSTR_LEN(haystk), charset); in PHP_FUNCTION()
2161 if (err != PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
2162 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset); in PHP_FUNCTION()
2176 err = _php_iconv_strpos(&retval, ZSTR_VAL(haystk), ZSTR_LEN(haystk), ZSTR_VAL(ndl), ZSTR_LEN(ndl), in PHP_FUNCTION()
2178 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset); in PHP_FUNCTION()
2180 if (err == PHP_ICONV_ERR_SUCCESS && retval != (size_t)-1) { in PHP_FUNCTION()
2197 php_iconv_err_t err; in PHP_FUNCTION() local
2216 err = _php_iconv_strpos(&retval, ZSTR_VAL(haystk), ZSTR_LEN(haystk), ZSTR_VAL(ndl), ZSTR_LEN(ndl), in PHP_FUNCTION()
2218 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset); in PHP_FUNCTION()
2220 if (err == PHP_ICONV_ERR_SUCCESS && retval != (size_t)-1) { in PHP_FUNCTION()
2237 php_iconv_err_t err; in PHP_FUNCTION() local
2309 err = _php_iconv_mime_encode(&retval, ZSTR_VAL(field_name), ZSTR_LEN(field_name), in PHP_FUNCTION()
2312 _php_iconv_show_error(err, out_charset, in_charset); in PHP_FUNCTION()
2314 if (err == PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
2342 php_iconv_err_t err; in PHP_FUNCTION() local
2355 …err = _php_iconv_mime_decode(&retval, ZSTR_VAL(encoded_str), ZSTR_LEN(encoded_str), charset, NULL,… in PHP_FUNCTION()
2356 _php_iconv_show_error(err, charset, "???"); in PHP_FUNCTION()
2358 if (err == PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
2382 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in PHP_FUNCTION() local
2408 …if (PHP_ICONV_ERR_SUCCESS != (err = _php_iconv_mime_decode(&decoded_header, enc_str_tmp, enc_str_l… in PHP_FUNCTION()
2461 if (err != PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
2462 _php_iconv_show_error(err, charset, "???"); in PHP_FUNCTION()
2476 php_iconv_err_t err; in PHP_NAMED_FUNCTION() local
2488 …err = php_iconv_string(ZSTR_VAL(in_buffer), (size_t)ZSTR_LEN(in_buffer), &out_buffer, out_charset,… in PHP_NAMED_FUNCTION()
2489 _php_iconv_show_error(err, out_charset, in_charset); in PHP_NAMED_FUNCTION()
2490 if (err == PHP_ICONV_ERR_SUCCESS && out_buffer != NULL) { in PHP_NAMED_FUNCTION()