403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.216.221
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/foyer/current/vendor/symfony/polyfill-php86/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/foyer/current/vendor/symfony/polyfill-php86/Php86.php
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Polyfill\Php86;

/**
 * @author kylekatarnls <kylekatarnls@gmail.com>
 *
 * @internal
 */
final class Php86
{
    /**
     * @template Value
     * @template Minimum
     * @template Maximum
     *
     * @param Value   $value
     * @param Minimum $min
     * @param Maximum $max
     *
     * @return Value|Minimum|Maximum
     */
    public static function clamp($value, $min, $max)
    {
        if (\is_float($min) && is_nan($min)) {
            self::throwValueErrorIfAvailable('clamp(): Argument #2 ($min) must not be NAN');
        }

        if (\is_float($max) && is_nan($max)) {
            self::throwValueErrorIfAvailable('clamp(): Argument #3 ($max) must not be NAN');
        }

        if ($max < $min) {
            self::throwValueErrorIfAvailable('clamp(): Argument #2 ($min) must be smaller than or equal to argument #3 ($max)');
        }

        if ($value > $max) {
            return $max;
        }

        if ($value < $min) {
            return $min;
        }

        return $value;
    }

    private static function throwValueErrorIfAvailable(string $message): void
    {
        if (!class_exists(\ValueError::class)) {
            throw new \InvalidArgumentException($message);
        }

        throw new \ValueError($message);
    }

    public static function grapheme_strrev(string $string)
    {
        if (!preg_match('//u', $string)) {
            return false;
        }

        if (false === $units = grapheme_str_split($string)) {
            return false;
        }

        return implode('', array_reverse($units));
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit