Lines Matching refs:err
203 static void _php_iconv_show_error(php_iconv_err_t err, const char *out_charset, const char *in_char…
733 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_strlen() local
785 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_strlen()
789 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_strlen()
798 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_strlen()
807 return err; in _php_iconv_strlen()
818 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_substr() local
831 err = _php_iconv_strlen(&total_len, str, nbytes, enc); in _php_iconv_substr()
832 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_substr()
833 return err; in _php_iconv_substr()
906 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_substr()
908 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_substr()
911 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_substr()
928 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_substr()
932 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_substr()
939 if (err == PHP_ICONV_ERR_SUCCESS) { in _php_iconv_substr()
953 return err; in _php_iconv_substr()
966 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_strpos() local
986 err = php_iconv_string(ndl, ndl_nbytes, &ndl_buf, GENERIC_SUPERSET_NAME, enc); in _php_iconv_strpos()
988 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_strpos()
992 return err; in _php_iconv_strpos()
1028 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_strpos()
1032 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_strpos()
1039 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_strpos()
1139 return err; in _php_iconv_strpos()
1146 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_mime_encode() local
1182 err = PHP_ICONV_ERR_TOO_BIG; in _php_iconv_mime_encode()
1190 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_mime_encode()
1192 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_mime_encode()
1195 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1204 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_mime_encode()
1206 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_mime_encode()
1209 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1264 err = PHP_ICONV_ERR_TOO_BIG; in _php_iconv_mime_encode()
1274 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_mime_encode()
1278 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_mime_encode()
1283 err = PHP_ICONV_ERR_TOO_BIG; in _php_iconv_mime_encode()
1289 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1294 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1305 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1310 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1319 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1334 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1375 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_mime_encode()
1379 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_mime_encode()
1384 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1390 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1395 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1406 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1411 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1447 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1470 return err; in _php_iconv_mime_encode()
1477 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_mime_decode() local
1502 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_mime_decode()
1504 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_mime_decode()
1507 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_decode()
1538 err = _php_iconv_appendc(pretval, *p1, cd_pl); in _php_iconv_mime_decode()
1539 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1541 err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_mime_decode()
1559 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1560 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1589 err = _php_iconv_appendl(pretval, csname, (size_t)((p1 + 1) - csname), cd_pl); in _php_iconv_mime_decode()
1590 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1606 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1614 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1615 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1626 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1672 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1673 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1685 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_mime_decode()
1687 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_mime_decode()
1690 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_decode()
1714 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1715 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1726 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1736 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1737 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1748 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1792 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1793 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1804 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1829 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1830 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1858 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1859 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1870 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_decode()
1875 err = _php_iconv_appendl(pretval, ZSTR_VAL(decoded_text), ZSTR_LEN(decoded_text), cd); in _php_iconv_mime_decode()
1878 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1881 err = _php_iconv_appendl(pretval, encoded_word, (size_t)(p1 - encoded_word), cd_pl); in _php_iconv_mime_decode()
1883 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
2005 err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_mime_decode()
2007 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
2024 return err; in _php_iconv_mime_decode()
2029 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
2031 switch (err) { in _php_iconv_show_error()
2077 php_iconv_err_t err; in PHP_FUNCTION() local
2091 err = _php_iconv_strlen(&retval, ZSTR_VAL(str), ZSTR_LEN(str), charset); in PHP_FUNCTION()
2092 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset); in PHP_FUNCTION()
2093 if (err == PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
2110 php_iconv_err_t err; in PHP_FUNCTION() local
2129 err = _php_iconv_substr(&retval, ZSTR_VAL(str), ZSTR_LEN(str), offset, length, charset); in PHP_FUNCTION()
2130 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset); in PHP_FUNCTION()
2132 if (err == PHP_ICONV_ERR_SUCCESS && ZSTR_LEN(str) >= 0 && retval.s != NULL) { in PHP_FUNCTION()
2150 php_iconv_err_t err; in PHP_FUNCTION() local
2167 err = _php_iconv_strlen(&haystk_len, ZSTR_VAL(haystk), ZSTR_LEN(haystk), charset); in PHP_FUNCTION()
2168 if (err != PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
2169 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset); in PHP_FUNCTION()
2183 err = _php_iconv_strpos(&retval, ZSTR_VAL(haystk), ZSTR_LEN(haystk), ZSTR_VAL(ndl), ZSTR_LEN(ndl), in PHP_FUNCTION()
2185 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset); in PHP_FUNCTION()
2187 if (err == PHP_ICONV_ERR_SUCCESS && retval != (size_t)-1) { in PHP_FUNCTION()
2204 php_iconv_err_t err; in PHP_FUNCTION() local
2223 err = _php_iconv_strpos(&retval, ZSTR_VAL(haystk), ZSTR_LEN(haystk), ZSTR_VAL(ndl), ZSTR_LEN(ndl), in PHP_FUNCTION()
2225 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset); in PHP_FUNCTION()
2227 if (err == PHP_ICONV_ERR_SUCCESS && retval != (size_t)-1) { in PHP_FUNCTION()
2244 php_iconv_err_t err; in PHP_FUNCTION() local
2313 err = _php_iconv_mime_encode(&retval, ZSTR_VAL(field_name), ZSTR_LEN(field_name), in PHP_FUNCTION()
2316 _php_iconv_show_error(err, out_charset, in_charset); in PHP_FUNCTION()
2318 if (err == PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
2346 php_iconv_err_t err; in PHP_FUNCTION() local
2359 …err = _php_iconv_mime_decode(&retval, ZSTR_VAL(encoded_str), ZSTR_LEN(encoded_str), charset, NULL,… in PHP_FUNCTION()
2360 _php_iconv_show_error(err, charset, "???"); in PHP_FUNCTION()
2362 if (err == PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
2386 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in PHP_FUNCTION() local
2412 …if (PHP_ICONV_ERR_SUCCESS != (err = _php_iconv_mime_decode(&decoded_header, enc_str_tmp, enc_str_l… in PHP_FUNCTION()
2465 if (err != PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
2466 _php_iconv_show_error(err, charset, "???"); in PHP_FUNCTION()
2480 php_iconv_err_t err; in PHP_NAMED_FUNCTION() local
2492 …err = php_iconv_string(ZSTR_VAL(in_buffer), (size_t)ZSTR_LEN(in_buffer), &out_buffer, out_charset,… in PHP_NAMED_FUNCTION()
2493 _php_iconv_show_error(err, out_charset, in_charset); in PHP_NAMED_FUNCTION()
2494 if (err == PHP_ICONV_ERR_SUCCESS && out_buffer != NULL) { in PHP_NAMED_FUNCTION()