Lines Matching refs:err
203 static void _php_iconv_show_error(php_iconv_err_t err, const char *out_charset, const char *in_char…
578 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_strlen() local
629 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_strlen()
633 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_strlen()
642 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_strlen()
651 return err; in _php_iconv_strlen()
662 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_substr() local
675 err = _php_iconv_strlen(&total_len, str, nbytes, enc); in _php_iconv_substr()
676 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_substr()
677 return err; in _php_iconv_substr()
750 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_substr()
752 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_substr()
755 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_substr()
772 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_substr()
776 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_substr()
783 if (err == PHP_ICONV_ERR_SUCCESS) { in _php_iconv_substr()
797 return err; in _php_iconv_substr()
810 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_strpos() local
830 err = php_iconv_string(ndl, ndl_nbytes, in _php_iconv_strpos()
833 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_strpos()
837 return err; in _php_iconv_strpos()
873 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_strpos()
877 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_strpos()
884 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_strpos()
984 return err; in _php_iconv_strpos()
991 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_mime_encode() local
1028 err = PHP_ICONV_ERR_TOO_BIG; in _php_iconv_mime_encode()
1036 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_mime_encode()
1038 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_mime_encode()
1041 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1050 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_mime_encode()
1052 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_mime_encode()
1055 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1111 err = PHP_ICONV_ERR_TOO_BIG; in _php_iconv_mime_encode()
1121 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_mime_encode()
1125 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_mime_encode()
1130 err = PHP_ICONV_ERR_TOO_BIG; in _php_iconv_mime_encode()
1136 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1141 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1152 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1157 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1166 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1182 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1221 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_mime_encode()
1225 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_mime_encode()
1230 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1236 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1241 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1251 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1256 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1292 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1315 return err; in _php_iconv_mime_encode()
1322 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_mime_decode() local
1347 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_mime_decode()
1349 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_mime_decode()
1352 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_decode()
1394 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1395 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1424 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1432 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1433 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1444 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1488 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1489 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1501 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_mime_decode()
1503 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_mime_decode()
1506 err = PHP_ICONV_ERR_UNKNOWN; 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()
1552 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1553 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1564 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1608 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1609 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1620 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1645 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1646 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1677 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1678 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1689 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_decode()
1694 err = _php_iconv_appendl(pretval, decoded_text, decoded_text_len, cd); in _php_iconv_mime_decode()
1697 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1700 err = _php_iconv_appendl(pretval, encoded_word, (size_t)(p1 - encoded_word), cd_pl); in _php_iconv_mime_decode()
1702 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1824 err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_mime_decode()
1826 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1843 return err; in _php_iconv_mime_decode()
1848 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
1850 switch (err) { in _php_iconv_show_error()
1897 php_iconv_err_t err; in PHP_FUNCTION() local
1911 err = _php_iconv_strlen(&retval, str, str_len, charset); in PHP_FUNCTION()
1912 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset TSRMLS_CC); in PHP_FUNCTION()
1913 if (err == PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
1931 php_iconv_err_t err; in PHP_FUNCTION() local
1950 err = _php_iconv_substr(&retval, str, str_len, offset, length, charset); in PHP_FUNCTION()
1951 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset TSRMLS_CC); in PHP_FUNCTION()
1953 if (err == PHP_ICONV_ERR_SUCCESS && str != NULL && retval.c != NULL) { in PHP_FUNCTION()
1973 php_iconv_err_t err; in PHP_FUNCTION() local
1997 err = _php_iconv_strpos(&retval, haystk, haystk_len, ndl, ndl_len, in PHP_FUNCTION()
1999 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset TSRMLS_CC); in PHP_FUNCTION()
2001 if (err == PHP_ICONV_ERR_SUCCESS && retval != (unsigned int)-1) { in PHP_FUNCTION()
2020 php_iconv_err_t err; in PHP_FUNCTION() local
2039 err = _php_iconv_strpos(&retval, haystk, haystk_len, ndl, ndl_len, in PHP_FUNCTION()
2041 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset TSRMLS_CC); in PHP_FUNCTION()
2043 if (err == PHP_ICONV_ERR_SUCCESS && retval != (unsigned int)-1) { in PHP_FUNCTION()
2062 php_iconv_err_t err; in PHP_FUNCTION() local
2149 err = _php_iconv_mime_encode(&retval, field_name, field_name_len, in PHP_FUNCTION()
2152 _php_iconv_show_error(err, out_charset, in_charset TSRMLS_CC); in PHP_FUNCTION()
2154 if (err == PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
2183 php_iconv_err_t err; in PHP_FUNCTION() local
2196 err = _php_iconv_mime_decode(&retval, encoded_str, encoded_str_len, charset, NULL, mode); in PHP_FUNCTION()
2197 _php_iconv_show_error(err, charset, "???" TSRMLS_CC); in PHP_FUNCTION()
2199 if (err == PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
2222 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in PHP_FUNCTION() local
2246 …if (PHP_ICONV_ERR_SUCCESS != (err = _php_iconv_mime_decode(&decoded_header, encoded_str, encoded_s… in PHP_FUNCTION()
2301 if (err != PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
2302 _php_iconv_show_error(err, charset, "???" TSRMLS_CC); in PHP_FUNCTION()
2316 php_iconv_err_t err; in PHP_NAMED_FUNCTION() local
2327 err = php_iconv_string(in_buffer, (size_t)in_buffer_len, in PHP_NAMED_FUNCTION()
2329 _php_iconv_show_error(err, out_charset, in_charset TSRMLS_CC); in PHP_NAMED_FUNCTION()
2365 php_iconv_err_t err = php_iconv_string(Z_STRVAL_P(zv_string), in PHP_FUNCTION() local
2368 _php_iconv_show_error(err, ICONVG(output_encoding), ICONVG(internal_encoding) TSRMLS_CC); in PHP_FUNCTION()