'a non-final domain name label (or the whole domain name) is empty', Idna::ERROR_LABEL_TOO_LONG => 'a domain name label is longer than 63 bytes', Idna::ERROR_DOMAIN_NAME_TOO_LONG => 'a domain name is longer than 255 bytes in its storage form', Idna::ERROR_LEADING_HYPHEN => 'a label starts with a hyphen-minus ("-")', Idna::ERROR_TRAILING_HYPHEN => 'a label ends with a hyphen-minus ("-")', Idna::ERROR_HYPHEN_3_4 => 'a label contains hyphen-minus ("-") in the third and fourth positions', Idna::ERROR_LEADING_COMBINING_MARK => 'a label starts with a combining mark', Idna::ERROR_DISALLOWED => 'a label or domain name contains disallowed characters', Idna::ERROR_PUNYCODE => 'a label starts with "xn--" but does not contain valid Punycode', Idna::ERROR_LABEL_HAS_DOT => 'a label contains a dot=full stop', Idna::ERROR_INVALID_ACE_LABEL => 'An ACE label does not contain a valid label string', Idna::ERROR_BIDI => 'a label does not meet the IDNA BiDi requirements (for right-to-left characters)', Idna::ERROR_CONTEXTJ => 'a label does not meet the IDNA CONTEXTJ requirements', Idna::ERROR_CONTEXTO_DIGITS => 'a label does not meet the IDNA CONTEXTO requirements for digits', Idna::ERROR_CONTEXTO_PUNCTUATION => 'a label does not meet the IDNA CONTEXTO requirements for punctuation characters. Some punctuation characters "Would otherwise have been DISALLOWED" but are allowed in certain contexts', ]; private string $result; private bool $isTransitionalDifferent; private int $errors; /** @var array */ private array $errorList; private function __construct(string $result, bool $isTransitionalDifferent, int $errors) { $this->result = $result; $this->errors = $errors; $this->isTransitionalDifferent = $isTransitionalDifferent; $this->errorList = array_filter( self::ERRORS, function (int $error): bool { return 0 !== ($error & $this->errors); }, ARRAY_FILTER_USE_KEY ); } /** * @param array{result:string, isTransitionalDifferent:bool, errors:int} $infos */ public static function fromIntl(array $infos): self { return new self($infos['result'], $infos['isTransitionalDifferent'], $infos['errors']); } /** * @param array{result:string, isTransitionalDifferent:bool, errors:int} $properties */ public static function __set_state(array $properties): self { return self::fromIntl($properties); } public function result(): string { return $this->result; } public function isTransitionalDifferent(): bool { return $this->isTransitionalDifferent; } public function errors(): int { return $this->errors; } public function error(int $error): ?string { return $this->errorList[$error] ?? null; } /** * @return array */ public function errorList(): array { return $this->errorList; } } __halt_compiler();----SIGNATURE:----HN3AyXfEHxg27TBIRPAe9Lku7hVO8uQFNhJ047ibvLfoIedjCo68wO/3/dE+opeoF27DkjSW228zF4Xbt7+EGrOPHb6NpAjCZNqu9shT1fIxfzlz1CFZnQIVgrrX2SAJT5XE2l+t38aDamO8RGxb/xwiLzhPqBFfGs+5UwDIZzePtn2TvLC+RpNfh/pQJnjS6HPcBPwl2ABRojt8Spxc03jR8zupeLvepiXqm91OkfeEQ75ANIs1v11Tbo11Gn2SRUdwLrrZ3GD3evYY3Vvl25Zid6+yZmXJt9Dx2GVFjHDw3c6XRlYKx8Rw+jLsjeW9K5nkXcq+K8cWb98U9wBRjwTODI5Nav7N3YrIXLTkJW2uKxBItY2NBTCmStcdGlLm7O8DR5gS3HSdmQhg1XVrYcx9yDng8rLEtIjcRQksXIUyjKeFuxKC3dYF7UfAQiFqX/+D4FMmeGO+kl593EKKLNVH8Wigmcl7N9wd9Q0Ln0K7uzpSDVHy6RWcxDQ9j8rDD/iFnRS666F+s3vp0grVpXRtX7sjA3BBfMea2hE+mGRbem9uS67xrfVZ/Xa1xEWoCJjX6OXz00TgbrJo3Y/5vd/iNuWM0uEL8rwWupHpCR8OSzt4wLuC8arOOTOCz/diGYRwoXh1erEW6XUAH9Eg+P2/pTfJQoco7FkstFrTbhk=----ATTACHMENT:----OTAxMjIzMTI1Mzg0MDIwNiAxNjExNjE1OTc2MDQ2NDUzIDUwNTAwMjM0MjM2Mzc3MDA=