!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:     CheckArgumentsValidityPass.php (4.28 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\Definition;
use 
Symfony\Component\DependencyInjection\Exception\RuntimeException;

/**
 * Checks if arguments of methods are properly configured.
 *
 * @author Kévin Dunglas <[email protected]>
 * @author Nicolas Grekas <[email protected]>
 */
class CheckArgumentsValidityPass extends AbstractRecursivePass
{
    private 
$throwExceptions;

    public function 
__construct(bool $throwExceptions true)
    {
        
$this->throwExceptions $throwExceptions;
    }

    
/**
     * {@inheritdoc}
     */
    
protected function processValue($valuebool $isRoot false)
    {
        if (!
$value instanceof Definition) {
            return 
parent::processValue($value$isRoot);
        }

        
$i 0;
        
$hasNamedArgs false;
        foreach (
$value->getArguments() as $k => $v) {
            if (\
PHP_VERSION_ID >= 80000 && preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/'$k)) {
                
$hasNamedArgs true;
                continue;
            }

            if (
$k !== $i++) {
                if (!\
is_int($k)) {
                    
$msg sprintf('Invalid constructor argument for service "%s": integer expected but found string "%s". Check your service definition.'$this->currentId$k);
                    
$value->addError($msg);
                    if (
$this->throwExceptions) {
                        throw new 
RuntimeException($msg);
                    }

                    break;
                }

                
$msg sprintf('Invalid constructor argument %d for service "%s": argument %d must be defined before. Check your service definition.'$k$this->currentId$i);
                
$value->addError($msg);
                if (
$this->throwExceptions) {
                    throw new 
RuntimeException($msg);
                }
            }

            if (
$hasNamedArgs) {
                
$msg sprintf('Invalid constructor argument for service "%s": cannot use positional argument after named argument. Check your service definition.'$this->currentId);
                
$value->addError($msg);
                if (
$this->throwExceptions) {
                    throw new 
RuntimeException($msg);
                }

                break;
            }
        }

        foreach (
$value->getMethodCalls() as $methodCall) {
            
$i 0;
            
$hasNamedArgs false;
            foreach (
$methodCall[1] as $k => $v) {
                if (\
PHP_VERSION_ID >= 80000 && preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/'$k)) {
                    
$hasNamedArgs true;
                    continue;
                }

                if (
$k !== $i++) {
                    if (!\
is_int($k)) {
                        
$msg sprintf('Invalid argument for method call "%s" of service "%s": integer expected but found string "%s". Check your service definition.'$methodCall[0], $this->currentId$k);
                        
$value->addError($msg);
                        if (
$this->throwExceptions) {
                            throw new 
RuntimeException($msg);
                        }

                        break;
                    }

                    
$msg sprintf('Invalid argument %d for method call "%s" of service "%s": argument %d must be defined before. Check your service definition.'$k$methodCall[0], $this->currentId$i);
                    
$value->addError($msg);
                    if (
$this->throwExceptions) {
                        throw new 
RuntimeException($msg);
                    }
                }

                if (
$hasNamedArgs) {
                    
$msg sprintf('Invalid argument for method call "%s" of service "%s": cannot use positional argument after named argument. Check your service definition.'$methodCall[0], $this->currentId);
                    
$value->addError($msg);
                    if (
$this->throwExceptions) {
                        throw new 
RuntimeException($msg);
                    }

                    break;
                }
            }
        }

        return 
null;
    }
}

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