Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/vendor/wikimedia/shellbox/src/RPC/LocalRpcClient.php
Ðазад
<?php namespace Shellbox\RPC; use Shellbox\ShellboxError; use Throwable; /** * An implementation of RPCClient that executes the provided commands locally. */ class LocalRpcClient implements RpcClient { public function call( string $routeName, $functionName, array $params = [], array $options = [] ) { $binary = !empty( $options['binary'] ); if ( $binary ) { $params = array_map( static function ( $param ) { return (string)$param; }, $params ); } foreach ( $options['sources' ] ?? [] as $source ) { require_once $source; } // We don't need to require $options['classes'] sources - local client // is run in the same environment as the calling code, so classes // be autoloaded. try { $result = call_user_func_array( $functionName, $params ); } catch ( Throwable $e ) { throw new ShellboxError( $e->getMessage(), $e->getCode(), $e ); } if ( $binary ) { $result = (string)$result; } return $result; } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка