getHost()) { $asciiHost = self::idnToAsci($uri->getHost(), $options, $info); if ($asciiHost === false) { $errorBitSet = isset($info['errors']) ? $info['errors'] : 0; $errorConstants = array_filter(array_keys(get_defined_constants()), function ($name) { return substr($name, 0, 11) === 'IDNA_ERROR_'; }); $errors = []; foreach ($errorConstants as $errorConstant) { if ($errorBitSet & constant($errorConstant)) { $errors[] = $errorConstant; } } $errorMessage = 'IDN conversion failed'; if ($errors) { $errorMessage .= ' (errors: ' . implode(', ', $errors) . ')'; } throw new InvalidArgumentException($errorMessage); } else { if ($uri->getHost() !== $asciiHost) { // Replace URI only if the ASCII version is different $uri = $uri->withHost($asciiHost); } } } return $uri; } /** * @param string $domain * @param int $options * @param array $info * * @return string|false */ private static function idnToAsci($domain, $options, &$info = []) { if (\preg_match('%^[ -~]+$%', $domain) === 1) { return $domain; } if (\extension_loaded('intl') && defined('INTL_IDNA_VARIANT_UTS46')) { return \idn_to_ascii($domain, $options, INTL_IDNA_VARIANT_UTS46, $info); } /* * The Idn class is marked as @internal. Verify that class and method exists. */ if (method_exists(Idn::class, 'idn_to_ascii')) { return Idn::idn_to_ascii($domain, $options, Idn::INTL_IDNA_VARIANT_UTS46, $info); } throw new \RuntimeException('ext-intl or symfony/polyfill-intl-idn not loaded or too old'); } } __halt_compiler();----SIGNATURE:----Gqb2QHudJGr0udRju6HOijUw+VE8TUiHMyGLMFNsVmOxpHtFdOKle/hN+jWjxi7WUV8kRMKdFit+qIVkKnx9UqH8T5suUvJ4a95LJAdsbov47Vm2LxFfPkcIyNCCUtovfHQe5Pyh7RErADbZlKV22O9FiMfgtryGV83CByqOCgK199Ofda3w8G1pcu505udIS75NeA1gKoiBXzXkJft4G5QIqzaLMNYGxQksTU9P5IqAcPoU0rj3AdVrOnIK+gbh3iSZRwxFqcD00WspqdJUmKXHfExqQpb88R/zX/srwLYJi8Bp3hi7AIlG5p3d2zM5rwIVp1q0a1Rb+XrKh5rPoMk5YPyQkwwY4qtWDIQHTtioc0gxrzmqeAatYmAacWz5Y9PUk/Ygd0r9C2qgt1pBC+6QOmio7bpUZDZ4b34ztp4BuoIjc88P9m8lE+DxtbXa4PBoSILzI2j/ZQHgbzwbaQq4aGHToR1VdRmqVsW3ihYw4WWWMOeRqjkizJwPNMIGm9COTyOO/mlWBhmZ+Ioan+1z2eX//RSH2/aKq//nouuI4+C7/Y9GTrIB4qjSFfvWsmJ7Ptx802a7Jtvblp1cDur2b3EUTXleV77a9Bm2ew4vlVoogTRFg4aDPpVamDDGiJ1k0yWppkrUtS8m97GEYoGIeTNdUCZC7W8HbWQQW60=----ATTACHMENT:----MTEzMDgzODMyMzM2NjkyNSA5NTc4MDkwNTk4MDQ0NjU4IDMxNzI5NzIwNDY4NDA5NTA=