/home/desid573/public_html/payment/xero-2/vendor/guzzlehttp/guzzle/src
NameSizeModeActions
Cookie/-0755rm
Exception/-0755rm
Handler/-0755rm
Client.php193150644editdlrm
ClientInterface.php28640644editdlrm
functions.php99280644editdlrm
functions_include.php1600644editdlrm
HandlerStack.php77680644editdlrm
MessageFormatter.php72620644editdlrm
Middleware.php98920644editdlrm
Pool.php48360644editdlrm
PrepareBodyMiddleware.php32240644editdlrm
RedirectMiddleware.php82820644editdlrm
RequestOptions.php103560644editdlrm
RetryMiddleware.php35030644editdlrm
TransferStats.php31150644editdlrm
UriTemplate.php81180644editdlrm
Utils.php27970644editdlrm
Edit: /home/desid573/public_html/payment/xero-2/vendor/guzzlehttp/guzzle/src/Utils.php (2797B)
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'); } }