22# ifdef PHP_ICONV_EXPORTS
23# define PHP_ICONV_API __declspec(dllexport)
25# define PHP_ICONV_API __declspec(dllimport)
27#elif defined(__GNUC__) && __GNUC__ >= 4
28# define PHP_ICONV_API __attribute__ ((visibility("default")))
34#define PHP_ICONV_VERSION PHP_VERSION
38#define iconv_module_ptr &iconv_module_entry
47 char *output_encoding;
50#define ICONVG(v) ZEND_MODULE_GLOBALS_ACCESSOR(iconv, v)
52#if defined(ZTS) && defined(COMPILE_DL_ICONV)
57# define ICONV_ASCII_ENCODING "IBM-850"
58# define ICONV_UCS4_ENCODING "UCS-4"
60# define ICONV_ASCII_ENCODING "ASCII"
61# define ICONV_UCS4_ENCODING "UCS-4LE"
64#ifndef ICONV_CSNMAXLEN
65#define ICONV_CSNMAXLEN 64
69typedef enum _php_iconv_err_t {
70 PHP_ICONV_ERR_SUCCESS =
SUCCESS,
71 PHP_ICONV_ERR_CONVERTER = 1,
72 PHP_ICONV_ERR_WRONG_CHARSET = 2,
73 PHP_ICONV_ERR_TOO_BIG = 3,
74 PHP_ICONV_ERR_ILLEGAL_SEQ = 4,
75 PHP_ICONV_ERR_ILLEGAL_CHAR = 5,
76 PHP_ICONV_ERR_UNKNOWN = 6,
77 PHP_ICONV_ERR_MALFORMED = 7,
78 PHP_ICONV_ERR_ALLOC = 8,
79 PHP_ICONV_ERR_OUT_BY_BOUNDS = 9
83PHP_ICONV_API php_iconv_err_t php_iconv_string(
const char * in_p,
size_t in_len,
zend_string **
out,
const char *out_charset,
const char *in_charset);
87#define iconv_module_ptr NULL
91#define phpext_iconv_ptr iconv_module_ptr
iconv(string $from_encoding, string $to_encoding, string $string)
const mbfl_encoding * internal_encoding
#define PHP_MSHUTDOWN_FUNCTION
#define PHP_MINIT_FUNCTION
#define PHP_MINFO_FUNCTION
#define ZEND_TSRMLS_CACHE_EXTERN()
#define ZEND_END_MODULE_GLOBALS(module_name)
#define ZEND_BEGIN_MODULE_GLOBALS(module_name)
struct _zend_string zend_string
struct _zend_module_entry zend_module_entry