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:----mYlZA4DDyLTngiXD8fzNRS/AwGzFha8RiTfxv3oTEZvYghf/CvcUIXmV5UF1UYl1lqCuBfgwzSueaPnWR35H5Q3VNgFCnPDY4mz7Ke/qX5M0JRR7cpPNeTr8uS3ATeg+JsMsYa9wMqdtTdCXlZkXVhAnnsW8mLx5W7kRhKDZsgh9jPPsQffm2xe9z4PfAb8e3s3GfBc4wjobUCp/rJ34classKf5wbkuyqkFlwS0OKfdapdk/YbB3bbGCk69el0g/wV/iOnIvJbNs2ZzBqYU3GjqbKZIK2zHXArmLGib+jXwU6mV6gWN77Uhy8oonPZUsArS58YITRzp8ShzvBpmRmdam4MgIYJNxobD4skU3mamwUgK6AT1vBnm+8uwAIK6lU1lO+l9mFUePZHNWmFMlgsd9x5Ida5fccQHRY7a57tkUOlcZsVEBy8B5KiZzOWMXOQBNFJiSIKewJ+1Ek5zzc8zcSvhGhAUAvURm48Ved+Ss6cFj/Cd+s6Lob2ZVuO8wyqq3859u1YDvrmVjzOO9uBGSCKZ9cAZcgT/dJ5xdfea7OBcy8+BGlF8fhaybR/BK2qsaHnYGMTb4YzQ4OQI/4veNMZwPqwUkaxfF3Ow4rO8zbzDhpXqL8Inx9Cyaavg24cB97v+X3gjF0BcrsDkGqUyUIj+gCahW/ebiEJBUAE=----ATTACHMENT:----MjUzMDk1MzI5Njg5ODE0IDc1NDg0MTQwMTQwODk2MTQgODYyMDU4OTQ2Mzc0NDAzMA==