!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.23.4. PHP/5.6.40-65+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux foro-restaurado-2 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023
aarch64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/share/php/Symfony/Component/DependencyInjection/Compiler/   drwxr-xr-x
Free 83.26 GB of 96.73 GB (86.08%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

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

namespace Symfony\Component\DependencyInjection\Compiler;

use 
Symfony\Component\DependencyInjection\Argument\ArgumentInterface;
use 
Symfony\Component\DependencyInjection\Argument\ServiceClosureArgument;
use 
Symfony\Component\DependencyInjection\ContainerBuilder;
use 
Symfony\Component\DependencyInjection\ContainerInterface;
use 
Symfony\Component\DependencyInjection\Definition;
use 
Symfony\Component\DependencyInjection\Exception\RuntimeException;
use 
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException;
use 
Symfony\Component\DependencyInjection\Reference;
use 
Symfony\Component\DependencyInjection\TypedReference;

/**
 * Emulates the invalid behavior if the reference is not found within the
 * container.
 *
 * @author Johannes M. Schmitt <[email protected]>
 */
class ResolveInvalidReferencesPass implements CompilerPassInterface
{
    private 
$container;
    private 
$signalingException;
    private 
$currentId;

    
/**
     * Process the ContainerBuilder to resolve invalid references.
     */
    
public function process(ContainerBuilder $container)
    {
        
$this->container $container;
        
$this->signalingException = new RuntimeException('Invalid reference.');

        try {
            foreach (
$container->getDefinitions() as $this->currentId => $definition) {
                
$this->processValue($definition);
            }
        } finally {
            
$this->container $this->signalingException null;
        }
    }

    
/**
     * Processes arguments to determine invalid references.
     *
     * @return mixed
     *
     * @throws RuntimeException When an invalid reference is found
     */
    
private function processValue($valueint $rootLevel 0int $level 0)
    {
        if (
$value instanceof ServiceClosureArgument) {
            
$value->setValues($this->processValue($value->getValues(), 11));
        } elseif (
$value instanceof ArgumentInterface) {
            
$value->setValues($this->processValue($value->getValues(), $rootLevel$level));
        } elseif (
$value instanceof Definition) {
            if (
$value->isSynthetic() || $value->isAbstract()) {
                return 
$value;
            }
            
$value->setArguments($this->processValue($value->getArguments(), 0));
            
$value->setProperties($this->processValue($value->getProperties(), 1));
            
$value->setMethodCalls($this->processValue($value->getMethodCalls(), 2));
        } elseif (\
is_array($value)) {
            
$i 0;

            foreach (
$value as $k => $v) {
                try {
                    if (
false !== $i && $k !== $i++) {
                        
$i false;
                    }
                    if (
$v !== $processedValue $this->processValue($v$rootLevel$level)) {
                        
$value[$k] = $processedValue;
                    }
                } catch (
RuntimeException $e) {
                    if (
$rootLevel $level || ($rootLevel && !$level)) {
                        unset(
$value[$k]);
                    } elseif (
$rootLevel) {
                        throw 
$e;
                    } else {
                        
$value[$k] = null;
                    }
                }
            }

            
// Ensure numerically indexed arguments have sequential numeric keys.
            
if (false !== $i) {
                
$value array_values($value);
            }
        } elseif (
$value instanceof Reference) {
            if (
$this->container->has($id = (string) $value)) {
                return 
$value;
            }

            
$currentDefinition $this->container->getDefinition($this->currentId);

            
// resolve decorated service behavior depending on decorator service
            
if ($currentDefinition->innerServiceId === $id && ContainerInterface::NULL_ON_INVALID_REFERENCE === $currentDefinition->decorationOnInvalid) {
                return 
null;
            }

            
$invalidBehavior $value->getInvalidBehavior();

            if (
ContainerInterface::RUNTIME_EXCEPTION_ON_INVALID_REFERENCE === $invalidBehavior && $value instanceof TypedReference && !$this->container->has($id)) {
                
$e = new ServiceNotFoundException($id$this->currentId);

                
// since the error message varies by $id and $this->currentId, so should the id of the dummy errored definition
                
$this->container->register($id sprintf('.errored.%s.%s'$this->currentId$id), $value->getType())
                    ->
addError($e->getMessage());

                return new 
TypedReference($id$value->getType(), $value->getInvalidBehavior());
            }

            
// resolve invalid behavior
            
if (ContainerInterface::NULL_ON_INVALID_REFERENCE === $invalidBehavior) {
                
$value null;
            } elseif (
ContainerInterface::IGNORE_ON_INVALID_REFERENCE === $invalidBehavior) {
                if (
$level || $rootLevel) {
                    throw 
$this->signalingException;
                }
                
$value null;
            }
        }

        return 
$value;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by HackingTool | HackingTool | Generation time: 0.0045 ]--