!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/cloud_campaign/vendor/psy/psysh/src/Reflection/   drwxr-xr-x
Free 13.36 GB of 57.97 GB (23.05%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

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

namespace Psy\Reflection;

/**
 * Somehow the standard reflection library doesn't include constants.
 *
 * ReflectionConstant_ corrects that omission.
 *
 * Note: For backwards compatibility reasons, this class is named
 * ReflectionConstant_ rather than ReflectionConstant. It will be renamed in
 * v0.10.0.
 */
class ReflectionConstant_ implements \Reflector
{
    public 
$name;
    private 
$value;

    private static 
$magicConstants = [
        
'__LINE__',
        
'__FILE__',
        
'__DIR__',
        
'__FUNCTION__',
        
'__CLASS__',
        
'__TRAIT__',
        
'__METHOD__',
        
'__NAMESPACE__',
        
'__COMPILER_HALT_OFFSET__',
    ];

    
/**
     * Construct a ReflectionConstant_ object.
     *
     * @param string $name
     */
    
public function __construct($name)
    {
        
$this->name $name;

        if (!
\defined($name) && !self::isMagicConstant($name)) {
            throw new 
\InvalidArgumentException('Unknown constant: '.$name);
        }

        if (!
self::isMagicConstant($name)) {
            
$this->value = @\constant($name);
        }
    }

    
/**
     * Exports a reflection.
     *
     * @param string $name
     * @param bool   $return pass true to return the export, as opposed to emitting it
     *
     * @return string|null
     */
    
public static function export($name$return false)
    {
        
$refl = new self($name);
        
$value $refl->getValue();

        
$str \sprintf('Constant [ %s %s ] { %s }'\gettype($value), $refl->getName(), $value);

        if (
$return) {
            return 
$str;
        }

        echo 
$str."\n";
    }

    public static function 
isMagicConstant($name)
    {
        return 
\in_array($nameself::$magicConstants);
    }

    
/**
     * Get the constant's docblock.
     *
     * @return false
     */
    
public function getDocComment()
    {
        return 
false;
    }

    
/**
     * Gets the constant name.
     *
     * @return string
     */
    
public function getName()
    {
        return 
$this->name;
    }

    
/**
     * Gets the namespace name.
     *
     * Returns '' when the constant is not namespaced.
     *
     * @return string
     */
    
public function getNamespaceName()
    {
        if (!
$this->inNamespace()) {
            return 
'';
        }

        return 
\preg_replace('/\\\\[^\\\\]+$/'''$this->name);
    }

    
/**
     * Gets the value of the constant.
     *
     * @return mixed
     */
    
public function getValue()
    {
        return 
$this->value;
    }

    
/**
     * Checks if this constant is defined in a namespace.
     *
     * @return bool
     */
    
public function inNamespace()
    {
        return 
\strpos($this->name'\\') !== false;
    }

    
/**
     * To string.
     *
     * @return string
     */
    
public function __toString()
    {
        return 
$this->getName();
    }

    
/**
     * Gets the constant's file name.
     *
     * Currently returns null, because if it returns a file name the signature
     * formatter will barf.
     */
    
public function getFileName()
    {
        return;
        
// return $this->class->getFileName();
    
}

    
/**
     * Get the code start line.
     *
     * @throws \RuntimeException
     */
    
public function getStartLine()
    {
        throw new 
\RuntimeException('Not yet implemented because it\'s unclear what I should do here :)');
    }

    
/**
     * Get the code end line.
     *
     * @throws \RuntimeException
     */
    
public function getEndLine()
    {
        return 
$this->getStartLine();
    }
}

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