Lines Matching refs:err

144 static void _php_iconv_show_error(php_iconv_err_t err, const char *out_charset, const char *in_char…
551 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_strlen() local
597 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_strlen()
601 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_strlen()
610 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_strlen()
616 return err; in _php_iconv_strlen()
627 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_substr() local
641 err = _php_iconv_strlen(&total_len, str, nbytes, enc); in _php_iconv_substr()
642 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_substr()
643 return err; in _php_iconv_substr()
705 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_substr()
707 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_substr()
723 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_substr()
727 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_substr()
733 if (err == PHP_ICONV_ERR_SUCCESS) { in _php_iconv_substr()
747 return err; in _php_iconv_substr()
760 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_strpos() local
782 err = php_iconv_string(ndl, ndl_nbytes, &ndl_buf, GENERIC_SUPERSET_NAME, enc); in _php_iconv_strpos()
784 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_strpos()
788 return err; in _php_iconv_strpos()
822 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_strpos()
826 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_strpos()
833 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_strpos()
894 if (err == PHP_ICONV_ERR_SUCCESS && offset > cnt) { in _php_iconv_strpos()
898 return err; in _php_iconv_strpos()
905 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_mime_encode() local
941 err = PHP_ICONV_ERR_TOO_BIG; in _php_iconv_mime_encode()
948 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_mime_encode()
950 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_mime_encode()
958 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_mime_encode()
960 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_mime_encode()
1016 err = PHP_ICONV_ERR_TOO_BIG; in _php_iconv_mime_encode()
1025 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_mime_encode()
1029 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_mime_encode()
1034 err = PHP_ICONV_ERR_TOO_BIG; in _php_iconv_mime_encode()
1040 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1049 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1057 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1072 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1109 err = PHP_ICONV_ERR_ILLEGAL_CHAR; in _php_iconv_mime_encode()
1113 err = PHP_ICONV_ERR_ILLEGAL_SEQ; in _php_iconv_mime_encode()
1118 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1124 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1130 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1165 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_encode()
1188 return err; in _php_iconv_mime_encode()
1195 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_mime_decode() local
1219 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_mime_decode()
1221 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_mime_decode()
1252 err = _php_iconv_appendc(pretval, *p1, cd_pl); in _php_iconv_mime_decode()
1253 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1255 err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_mime_decode()
1273 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1274 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1303 err = _php_iconv_appendl(pretval, csname, (size_t)((p1 + 1) - csname), cd_pl); in _php_iconv_mime_decode()
1304 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1320 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1328 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1329 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1340 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1386 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1387 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1398 err = PHP_ICONV_ERR_WRONG_CHARSET; in _php_iconv_mime_decode()
1400 err = PHP_ICONV_ERR_CONVERTER; in _php_iconv_mime_decode()
1424 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1425 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1436 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1446 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1447 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1458 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1502 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1503 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1514 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1541 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1542 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1570 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1571 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1582 err = PHP_ICONV_ERR_UNKNOWN; in _php_iconv_mime_decode()
1587 err = _php_iconv_appendl(pretval, ZSTR_VAL(decoded_text), ZSTR_LEN(decoded_text), cd); in _php_iconv_mime_decode()
1588 if (err == PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1589 err = _php_iconv_appendl(pretval, NULL, 0, cd); in _php_iconv_mime_decode()
1593 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1596 err = _php_iconv_appendl(pretval, encoded_word, (size_t)(p1 - encoded_word), cd_pl); in _php_iconv_mime_decode()
1598 if (err != PHP_ICONV_ERR_SUCCESS) { in _php_iconv_mime_decode()
1720 err = PHP_ICONV_ERR_SUCCESS; in _php_iconv_mime_decode()
1722 err = PHP_ICONV_ERR_MALFORMED; in _php_iconv_mime_decode()
1739 return err; in _php_iconv_mime_decode()
1744 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
1746 switch (err) { in _php_iconv_show_error()
1795 php_iconv_err_t err; in PHP_FUNCTION() local
1811 err = _php_iconv_strlen(&retval, ZSTR_VAL(str), ZSTR_LEN(str), charset); in PHP_FUNCTION()
1812 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset); in PHP_FUNCTION()
1813 if (err == PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
1830 php_iconv_err_t err; in PHP_FUNCTION() local
1851 err = _php_iconv_substr(&retval, ZSTR_VAL(str), ZSTR_LEN(str), offset, length, charset); in PHP_FUNCTION()
1852 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset); in PHP_FUNCTION()
1854 if (err == PHP_ICONV_ERR_SUCCESS && retval.s != NULL) { in PHP_FUNCTION()
1871 php_iconv_err_t err; in PHP_FUNCTION() local
1890 err = _php_iconv_strlen(&haystk_len, ZSTR_VAL(haystk), ZSTR_LEN(haystk), charset); in PHP_FUNCTION()
1891 if (err != PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
1892 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset); in PHP_FUNCTION()
1907 err = _php_iconv_strpos( in PHP_FUNCTION()
1910 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset); in PHP_FUNCTION()
1912 if (err == PHP_ICONV_ERR_SUCCESS && retval != (size_t)-1) { in PHP_FUNCTION()
1928 php_iconv_err_t err; in PHP_FUNCTION() local
1949 err = _php_iconv_strpos( in PHP_FUNCTION()
1952 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset); in PHP_FUNCTION()
1954 if (err == PHP_ICONV_ERR_SUCCESS && retval != (size_t)-1) { in PHP_FUNCTION()
1970 php_iconv_err_t err; in PHP_FUNCTION() local
2042 err = _php_iconv_mime_encode(&retval, ZSTR_VAL(field_name), ZSTR_LEN(field_name), in PHP_FUNCTION()
2045 _php_iconv_show_error(err, out_charset, in_charset); in PHP_FUNCTION()
2047 if (err == PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
2070 php_iconv_err_t err; in PHP_FUNCTION() local
2085err = _php_iconv_mime_decode(&retval, ZSTR_VAL(encoded_str), ZSTR_LEN(encoded_str), charset, NULL,… in PHP_FUNCTION()
2086 _php_iconv_show_error(err, charset, "???"); in PHP_FUNCTION()
2088 if (err == PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
2107 php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; in PHP_FUNCTION() local
2135 …if (PHP_ICONV_ERR_SUCCESS != (err = _php_iconv_mime_decode(&decoded_header, enc_str_tmp, enc_str_l… in PHP_FUNCTION()
2188 if (err != PHP_ICONV_ERR_SUCCESS) { in PHP_FUNCTION()
2189 _php_iconv_show_error(err, charset, "???"); in PHP_FUNCTION()
2202 php_iconv_err_t err; in PHP_FUNCTION() local
2215err = php_iconv_string(ZSTR_VAL(in_buffer), (size_t)ZSTR_LEN(in_buffer), &out_buffer, out_charset,… in PHP_FUNCTION()
2216 _php_iconv_show_error(err, out_charset, in_charset); in PHP_FUNCTION()
2217 if (err == PHP_ICONV_ERR_SUCCESS && out_buffer != NULL) { in PHP_FUNCTION()