Lines Matching refs:err
197 static void _php_iconv_show_error(php_iconv_err_t err, const char *out_charset, const char *in_char…
676 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_strlen() local
727 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_strlen()
731 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_strlen()
740 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_strlen()
749 return err; in _php_iconv_strlen()
760 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_substr() local
773 err = _php_iconv_strlen(&total_len, str, nbytes, enc); in _php_iconv_substr()
774 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_substr()
775 return err; in _php_iconv_substr()
848 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_substr()
850 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_substr()
853 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_substr()
870 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_substr()
874 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_substr()
881 if (err == PHP_ICONV_ERR_SUCCESS) { in _php_iconv_substr()
895 return err; in _php_iconv_substr()
908 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_strpos() local
928 err = php_iconv_string(ndl, ndl_nbytes, in _php_iconv_strpos()
931 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_strpos()
935 return err; in _php_iconv_strpos()
971 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_strpos()
975 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_strpos()
982 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_strpos()
1082 return err; in _php_iconv_strpos()
1089 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_mime_encode() local
1126 err = PHP_ICONV_ERR_TOO_BIG; in _php_iconv_mime_encode()
1134 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_mime_encode()
1136 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_mime_encode()
1139 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1148 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_mime_encode()
1150 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_mime_encode()
1153 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1209 err = PHP_ICONV_ERR_TOO_BIG; in _php_iconv_mime_encode()
1219 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_mime_encode()
1223 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_mime_encode()
1228 err = PHP_ICONV_ERR_TOO_BIG; in _php_iconv_mime_encode()
1234 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1239 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1250 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1255 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1264 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1280 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1319 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_mime_encode()
1323 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_mime_encode()
1328 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1334 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1339 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1349 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1354 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1390 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1413 return err; in _php_iconv_mime_encode()
1420 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_mime_decode() local
1445 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_mime_decode()
1447 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_mime_decode()
1450 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_decode()
1492 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1493 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1522 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1530 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1531 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1542 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1586 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1587 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1599 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_mime_decode()
1601 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_mime_decode()
1604 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_decode()
1628 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1629 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1640 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1650 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1651 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1662 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1706 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1707 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1718 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1743 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1744 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1775 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1776 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1787 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_decode()
1792 err = _php_iconv_appendl(pretval, decoded_text, decoded_text_len, cd); in _php_iconv_mime_decode()
1795 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1798 err = _php_iconv_appendl(pretval, encoded_word, (size_t)(p1 - encoded_word), cd_pl); in _php_iconv_mime_decode()
1800 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1922 err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_mime_decode()
1924 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1941 return err; in _php_iconv_mime_decode()
1946 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
1948 switch (err) { in _php_iconv_show_error()
1995 php_iconv_err_t err; in PHP_FUNCTION() local
2009 err = _php_iconv_strlen(&retval, str, str_len, charset); in PHP_FUNCTION()
2010 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset TSRMLS_CC); in PHP_FUNCTION()
2011 if (err == PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
2029 php_iconv_err_t err; in PHP_FUNCTION() local
2048 err = _php_iconv_substr(&retval, str, str_len, offset, length, charset); in PHP_FUNCTION()
2049 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset TSRMLS_CC); in PHP_FUNCTION()
2051 if (err == PHP_ICONV_ERR_SUCCESS && str != NULL && retval.c != NULL) { in PHP_FUNCTION()
2071 php_iconv_err_t err; in PHP_FUNCTION() local
2095 err = _php_iconv_strpos(&retval, haystk, haystk_len, ndl, ndl_len, in PHP_FUNCTION()
2097 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset TSRMLS_CC); in PHP_FUNCTION()
2099 if (err == PHP_ICONV_ERR_SUCCESS && retval != (unsigned int)-1) { in PHP_FUNCTION()
2118 php_iconv_err_t err; in PHP_FUNCTION() local
2137 err = _php_iconv_strpos(&retval, haystk, haystk_len, ndl, ndl_len, in PHP_FUNCTION()
2139 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset TSRMLS_CC); in PHP_FUNCTION()
2141 if (err == PHP_ICONV_ERR_SUCCESS && retval != (unsigned int)-1) { in PHP_FUNCTION()
2160 php_iconv_err_t err; in PHP_FUNCTION() local
2247 err = _php_iconv_mime_encode(&retval, field_name, field_name_len, in PHP_FUNCTION()
2250 _php_iconv_show_error(err, out_charset, in_charset TSRMLS_CC); in PHP_FUNCTION()
2252 if (err == PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
2281 php_iconv_err_t err; in PHP_FUNCTION() local
2294 err = _php_iconv_mime_decode(&retval, encoded_str, encoded_str_len, charset, NULL, mode); in PHP_FUNCTION()
2295 _php_iconv_show_error(err, charset, "???" TSRMLS_CC); in PHP_FUNCTION()
2297 if (err == PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
2320 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in PHP_FUNCTION() local
2344 …if (PHP_ICONV_ERR_SUCCESS != (err = _php_iconv_mime_decode(&decoded_header, encoded_str, encoded_s… in PHP_FUNCTION()
2399 if (err != PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
2400 _php_iconv_show_error(err, charset, "???" TSRMLS_CC); in PHP_FUNCTION()
2414 php_iconv_err_t err; in PHP_NAMED_FUNCTION() local
2425 err = php_iconv_string(in_buffer, (size_t)in_buffer_len, in PHP_NAMED_FUNCTION()
2427 _php_iconv_show_error(err, out_charset, in_charset TSRMLS_CC); in PHP_NAMED_FUNCTION()
2428 if (err == PHP_ICONV_ERR_SUCCESS && out_buffer != NULL) { in PHP_NAMED_FUNCTION()