!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/dokan/script/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/   drwxrwxrwx
Free 12.98 GB of 57.97 GB (22.4%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     DocLexer.php (3.43 KB)      -rwxrwxrwx
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Doctrine\Common\Annotations;

use 
Doctrine\Common\Lexer\AbstractLexer;

use function 
ctype_alpha;
use function 
is_numeric;
use function 
str_replace;
use function 
stripos;
use function 
strlen;
use function 
strpos;
use function 
strtolower;
use function 
substr;

/**
 * Simple lexer for docblock annotations.
 */
final class DocLexer extends AbstractLexer
{
    public const 
T_NONE    1;
    public const 
T_INTEGER 2;
    public const 
T_STRING  3;
    public const 
T_FLOAT   4;

    
// All tokens that are also identifiers should be >= 100
    
public const T_IDENTIFIER          100;
    public const 
T_AT                  101;
    public const 
T_CLOSE_CURLY_BRACES  102;
    public const 
T_CLOSE_PARENTHESIS   103;
    public const 
T_COMMA               104;
    public const 
T_EQUALS              105;
    public const 
T_FALSE               106;
    public const 
T_NAMESPACE_SEPARATOR 107;
    public const 
T_OPEN_CURLY_BRACES   108;
    public const 
T_OPEN_PARENTHESIS    109;
    public const 
T_TRUE                110;
    public const 
T_NULL                111;
    public const 
T_COLON               112;
    public const 
T_MINUS               113;

    
/** @var array<string, int> */
    
protected $noCase = [
        
'@'  => self::T_AT,
        
','  => self::T_COMMA,
        
'('  => self::T_OPEN_PARENTHESIS,
        
')'  => self::T_CLOSE_PARENTHESIS,
        
'{'  => self::T_OPEN_CURLY_BRACES,
        
'}'  => self::T_CLOSE_CURLY_BRACES,
        
'='  => self::T_EQUALS,
        
':'  => self::T_COLON,
        
'-'  => self::T_MINUS,
        
'\\' => self::T_NAMESPACE_SEPARATOR,
    ];

    
/** @var array<string, int> */
    
protected $withCase = [
        
'true'  => self::T_TRUE,
        
'false' => self::T_FALSE,
        
'null'  => self::T_NULL,
    ];

    
/**
     * Whether the next token starts immediately, or if there were
     * non-captured symbols before that
     */
    
public function nextTokenIsAdjacent(): bool
    
{
        return 
$this->token === null
            
|| ($this->lookahead !== null
                
&& ($this->lookahead['position'] - $this->token['position']) === strlen($this->token['value']));
    }

    
/**
     * {@inheritdoc}
     */
    
protected function getCatchablePatterns()
    {
        return [
            
'[a-z_\\\][a-z0-9_\:\\\]*[a-z_][a-z0-9_]*',
            
'(?:[+-]?[0-9]+(?:[\.][0-9]+)*)(?:[eE][+-]?[0-9]+)?',
            
'"(?:""|[^"])*+"',
        ];
    }

    
/**
     * {@inheritdoc}
     */
    
protected function getNonCatchablePatterns()
    {
        return [
'\s+''\*+''(.)'];
    }

    
/**
     * {@inheritdoc}
     */
    
protected function getType(&$value)
    {
        
$type self::T_NONE;

        if (
$value[0] === '"') {
            
$value str_replace('""''"'substr($value1strlen($value) - 2));

            return 
self::T_STRING;
        }

        if (isset(
$this->noCase[$value])) {
            return 
$this->noCase[$value];
        }

        if (
$value[0] === '_' || $value[0] === '\\' || ctype_alpha($value[0])) {
            return 
self::T_IDENTIFIER;
        }

        
$lowerValue strtolower($value);

        if (isset(
$this->withCase[$lowerValue])) {
            return 
$this->withCase[$lowerValue];
        }

        
// Checking numeric value
        
if (is_numeric($value)) {
            return 
strpos($value'.') !== false || stripos($value'e') !== false
                
self::T_FLOAT self::T_INTEGER;
        }

        return 
$type;
    }
}

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