!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.3.27 

uname -a: Linux pdx1-shared-a4-04 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64 

uid=6659440(dh_z2jmpm) gid=2086089(pg10499364) groups=2086089(pg10499364)  

Safe-mode: OFF (not secure)

/usr/local/wp/vendor/php-parallel-lint/php-parallel-lint/src/Process/   drwxr-xr-x
Free 714.28 GB of 879.6 GB (81.21%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     LintProcess.php (3.48 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace JakubOnderka\PhpParallelLint\Process;

use JakubOnderka\PhpParallelLint\RunTimeException;

class LintProcess extends PhpProcess
{
    const FATAL_ERROR = 'Fatal error';
    const PARSE_ERROR = 'Parse error';
    const DEPRECATED_ERROR = 'Deprecated:';

    /**
     * @var bool
     */
    private $showDeprecatedErrors;

    /**
     * @param PhpExecutable $phpExecutable
     * @param string $fileToCheck Path to file to check
     * @param bool $aspTags
     * @param bool $shortTag
     * @param bool $deprecated
     * @throws RunTimeException
     */
    public function __construct(PhpExecutable $phpExecutable, $fileToCheck, $aspTags = false, $shortTag = false, $deprecated = false)
    {
        if (empty($fileToCheck)) {
            throw new \InvalidArgumentException("File to check must be set.");
        }

        $parameters = array(
            '-d asp_tags=' . ($aspTags ? 'On' : 'Off'),
            '-d short_open_tag=' . ($shortTag ? 'On' : 'Off'),
            '-d error_reporting=E_ALL',
            '-n',
            '-l',
            $fileToCheck,
        );

        $this->showDeprecatedErrors = $deprecated;
        parent::__construct($phpExecutable, $parameters);
    }

    /**
     * @return bool
     * @throws
     */
    public function containsError()
    {
        return $this->containsParserError($this->getOutput()) ||
            $this->containsFatalError($this->getOutput()) ||
            $this->containsDeprecatedError($this->getOutput());
    }

    /**
     * @return string
     * @throws RunTimeException
     */
    public function getSyntaxError()
    {
        if ($this->containsError()) {
            // Look for fatal errors first
            foreach (explode("\n", $this->getOutput()) as $line) {
                if ($this->containsFatalError($line)) {
                    return $line;
                }
            }

            // Look for parser errors second
            foreach (explode("\n", $this->getOutput()) as $line) {
                if ($this->containsParserError($line)) {
                    return $line;
                }
            }

            // Look for deprecated errors third
            foreach (explode("\n", $this->getOutput()) as $line) {
                if ($this->containsDeprecatedError($line)) {
                    return $line;
                }
            }

            throw new RunTimeException("The output '{$this->getOutput()}' does not contain Parse or Syntax errors");
        }

        return false;
    }

    /**
     * @return bool
     * @throws RunTimeException
     */
    public function isFail()
    {
        return defined('PHP_WINDOWS_VERSION_MAJOR') ? $this->getStatusCode() === 1 : parent::isFail();
    }

    /**
     * @return bool
     * @throws RunTimeException
     */
    public function isSuccess()
    {
        return $this->getStatusCode() === 0;
    }

    /**
     * @param string $string
     * @return bool
     */
    private function containsParserError($string)
    {
        return strpos($string, self::PARSE_ERROR) !== false;
    }

    /**
     * @param string $string
     * @return bool
     */
    private function containsFatalError($string)
    {
        return strpos($string, self::FATAL_ERROR) !== false;
    }

    /**
     * @param string $string
     * @return bool
     */
    private function containsDeprecatedError($string)
    {
        if ($this->showDeprecatedErrors === false) {
            return false;
        }

        return strpos($string, self::DEPRECATED_ERROR) !== 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.0114 ]--