Lines Matching refs:err
197 static void _php_iconv_show_error(php_iconv_err_t err, const char *out_charset, const char *in_char…
646 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_strlen() local
697 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_strlen()
701 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_strlen()
710 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_strlen()
719 return err; in _php_iconv_strlen()
730 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_substr() local
743 err = _php_iconv_strlen(&total_len, str, nbytes, enc); in _php_iconv_substr()
744 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_substr()
745 return err; in _php_iconv_substr()
818 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_substr()
820 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_substr()
823 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_substr()
840 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_substr()
844 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_substr()
851 if (err == PHP_ICONV_ERR_SUCCESS) { in _php_iconv_substr()
865 return err; in _php_iconv_substr()
878 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_strpos() local
898 err = php_iconv_string(ndl, ndl_nbytes, in _php_iconv_strpos()
901 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_strpos()
905 return err; in _php_iconv_strpos()
941 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_strpos()
945 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_strpos()
952 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_strpos()
1052 return err; in _php_iconv_strpos()
1059 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_mime_encode() local
1096 err = PHP_ICONV_ERR_TOO_BIG; in _php_iconv_mime_encode()
1104 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_mime_encode()
1106 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_mime_encode()
1109 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1118 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_mime_encode()
1120 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_mime_encode()
1123 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1179 err = PHP_ICONV_ERR_TOO_BIG; in _php_iconv_mime_encode()
1189 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_mime_encode()
1193 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_mime_encode()
1198 err = PHP_ICONV_ERR_TOO_BIG; in _php_iconv_mime_encode()
1204 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1209 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1220 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1225 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1234 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1250 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1289 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_mime_encode()
1293 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_mime_encode()
1298 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1304 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1309 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1319 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1324 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1360 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1383 return err; in _php_iconv_mime_encode()
1390 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_mime_decode() local
1415 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_mime_decode()
1417 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_mime_decode()
1420 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_decode()
1462 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1463 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1492 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1500 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1501 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1512 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1556 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1557 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1569 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_mime_decode()
1571 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_mime_decode()
1574 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_decode()
1598 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1599 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1610 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1620 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1621 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1632 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1676 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1677 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1688 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1713 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1714 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1745 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1746 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1757 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_decode()
1762 err = _php_iconv_appendl(pretval, decoded_text, decoded_text_len, cd); in _php_iconv_mime_decode()
1765 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1768 err = _php_iconv_appendl(pretval, encoded_word, (size_t)(p1 - encoded_word), cd_pl); in _php_iconv_mime_decode()
1770 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1892 err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_mime_decode()
1894 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1911 return err; in _php_iconv_mime_decode()
1916 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
1918 switch (err) { in _php_iconv_show_error()
1965 php_iconv_err_t err; in PHP_FUNCTION() local
1979 err = _php_iconv_strlen(&retval, str, str_len, charset); in PHP_FUNCTION()
1980 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset TSRMLS_CC); in PHP_FUNCTION()
1981 if (err == PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
1999 php_iconv_err_t err; in PHP_FUNCTION() local
2018 err = _php_iconv_substr(&retval, str, str_len, offset, length, charset); in PHP_FUNCTION()
2019 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset TSRMLS_CC); in PHP_FUNCTION()
2021 if (err == PHP_ICONV_ERR_SUCCESS && str != NULL && retval.c != NULL) { in PHP_FUNCTION()
2041 php_iconv_err_t err; in PHP_FUNCTION() local
2065 err = _php_iconv_strpos(&retval, haystk, haystk_len, ndl, ndl_len, in PHP_FUNCTION()
2067 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset TSRMLS_CC); in PHP_FUNCTION()
2069 if (err == PHP_ICONV_ERR_SUCCESS && retval != (unsigned int)-1) { in PHP_FUNCTION()
2088 php_iconv_err_t err; in PHP_FUNCTION() local
2107 err = _php_iconv_strpos(&retval, haystk, haystk_len, ndl, ndl_len, in PHP_FUNCTION()
2109 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset TSRMLS_CC); in PHP_FUNCTION()
2111 if (err == PHP_ICONV_ERR_SUCCESS && retval != (unsigned int)-1) { in PHP_FUNCTION()
2130 php_iconv_err_t err; in PHP_FUNCTION() local
2217 err = _php_iconv_mime_encode(&retval, field_name, field_name_len, in PHP_FUNCTION()
2220 _php_iconv_show_error(err, out_charset, in_charset TSRMLS_CC); in PHP_FUNCTION()
2222 if (err == PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
2251 php_iconv_err_t err; in PHP_FUNCTION() local
2264 err = _php_iconv_mime_decode(&retval, encoded_str, encoded_str_len, charset, NULL, mode); in PHP_FUNCTION()
2265 _php_iconv_show_error(err, charset, "???" TSRMLS_CC); in PHP_FUNCTION()
2267 if (err == PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
2290 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in PHP_FUNCTION() local
2314 …if (PHP_ICONV_ERR_SUCCESS != (err = _php_iconv_mime_decode(&decoded_header, encoded_str, encoded_s… in PHP_FUNCTION()
2369 if (err != PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
2370 _php_iconv_show_error(err, charset, "???" TSRMLS_CC); in PHP_FUNCTION()
2384 php_iconv_err_t err; in PHP_NAMED_FUNCTION() local
2395 err = php_iconv_string(in_buffer, (size_t)in_buffer_len, in PHP_NAMED_FUNCTION()
2397 _php_iconv_show_error(err, out_charset, in_charset TSRMLS_CC); in PHP_NAMED_FUNCTION()
2398 if (err == PHP_ICONV_ERR_SUCCESS && out_buffer != NULL) { in PHP_NAMED_FUNCTION()