!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/queuepro/vendor/phpspec/prophecy/src/Prophecy/Promise/   drwxrwxr-x
Free 13.1 GB of 57.97 GB (22.59%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     CallbackPromise.php (1.73 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
 * This file is part of the Prophecy.
 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
 *     Marcello Duarte <marcello.duarte@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Prophecy\Promise;

use 
Prophecy\Prophecy\ObjectProphecy;
use 
Prophecy\Prophecy\MethodProphecy;
use 
Prophecy\Exception\InvalidArgumentException;
use 
Closure;
use 
ReflectionFunction;

/**
 * Callback promise.
 *
 * @author Konstantin Kudryashov <ever.zet@gmail.com>
 */
class CallbackPromise implements PromiseInterface
{
    private 
$callback;

    
/**
     * Initializes callback promise.
     *
     * @param callable $callback Custom callback
     *
     * @throws \Prophecy\Exception\InvalidArgumentException
     */
    
public function __construct($callback)
    {
        if (!
is_callable($callback)) {
            throw new 
InvalidArgumentException(sprintf(
                
'Callable expected as an argument to CallbackPromise, but got %s.',
                
gettype($callback)
            ));
        }

        
$this->callback $callback;
    }

    
/**
     * Evaluates promise callback.
     *
     * @param array          $args
     * @param ObjectProphecy $object
     * @param MethodProphecy $method
     *
     * @return mixed
     */
    
public function execute(array $argsObjectProphecy $objectMethodProphecy $method)
    {
        
$callback $this->callback;

        if (
$callback instanceof Closure && method_exists('Closure''bind') && (new ReflectionFunction($callback))->getClosureThis() !== null) {
            
$callback Closure::bind($callback$object);
        }

        return 
call_user_func($callback$args$object$method);
    }
}

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