25#include <unicode/uidna.h>
26#include <unicode/ustring.h>
61 UIDNAInfo info = UIDNA_INFO_INITIALIZER;
63 uts46 = uidna_openUTS46(option, &
status);
64 if (php_intl_idn_check_status(
status,
"failed to open UIDNA instance") ==
FAILURE) {
69 const int32_t buffer_capac = 255;
70 buffer = zend_string_alloc(buffer_capac, 0);
73 if (
len >= buffer_capac || php_intl_idn_check_status(
status,
"failed to convert name") ==
FAILURE) {
79 const int32_t buffer_capac = 252*4;
80 buffer = zend_string_alloc(buffer_capac, 0);
83 if (
len >= buffer_capac || php_intl_idn_check_status(
status,
"failed to convert name") ==
FAILURE) {
93 if (info.errors == 0) {
102 sizeof(
"isTransitionalDifferent")-1, info.isTransitionalDifferent);
106 zend_string_release(
buffer);
131 if (
ZSTR_LEN(domain) > INT32_MAX - 1) {
141 if (idna_info !=
NULL) {
142 idna_info = zend_try_array_init(idna_info);
foreach($dp as $el) foreach( $dp as $el) if( $pass2< 2) echo ""
void intl_error_reset(intl_error *err)
void intl_error_set_code(intl_error *err, UErrorCode err_code)
void intl_error_set_custom_msg(intl_error *err, const char *msg, int copyMsg)
idn_to_ascii(string $domain, int $flags=IDNA_DEFAULT, int $variant=INTL_IDNA_VARIANT_UTS46, &$idna_info=null)
idn_to_utf8(string $domain, int $flags=IDNA_DEFAULT, int $variant=INTL_IDNA_VARIANT_UTS46, &$idna_info=null)
#define INTERNAL_FUNCTION_PARAMETERS
#define INTERNAL_FUNCTION_PARAM_PASSTHRU
ZEND_API void add_assoc_bool_ex(zval *arg, const char *key, size_t key_len, bool b)
ZEND_API ZEND_COLD void zend_argument_must_not_be_empty_error(uint32_t arg_num)
ZEND_API void add_assoc_long_ex(zval *arg, const char *key, size_t key_len, zend_long n)
ZEND_API void add_assoc_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str)
ZEND_API ZEND_COLD void zend_argument_value_error(uint32_t arg_num, const char *format,...)
#define ZEND_PARSE_PARAMETERS_END()
#define RETVAL_STR_COPY(s)
#define Z_PARAM_STR(dest)
#define ZEND_PARSE_PARAMETERS_START(min_num_args, max_num_args)
#define Z_PARAM_LONG(dest)
#define Z_PARAM_ZVAL(dest)
ZEND_API const char * get_active_function_name(void)
struct _zend_string zend_string
ZEND_RESULT_CODE zend_result