whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
portal
/
vendor
/
azjezz
/
psl
/
src
/
Psl
/
IO
/
Upload File:
files >> /home/kckglobal/www/portal/vendor/azjezz/psl/src/Psl/IO/input_handle.php
<?php declare(strict_types=1); namespace Psl\IO; use Revolt\EventLoop; use WeakMap; use const PHP_SAPI; /** * Return the input handle for the current request. * * In CLI mode, this is likely STDIN; for HTTP requests, it may contain the * POST data, if any. * * @codeCoverageIgnore */ function input_handle(): CloseReadStreamHandleInterface { /** @var WeakMap|null $cache */ static $cache = null; if (null === $cache) { $cache = new WeakMap(); } $key = EventLoop::getDriver(); if ($cache->offsetExists($key)) { /** @var CloseReadStreamHandleInterface */ return $cache->offsetGet($key); } if (PHP_SAPI === "cli") { $handle = new CloseReadStreamHandle( Internal\open_resource('php://stdin', 'rb') ); } else { $handle = new CloseReadStreamHandle( Internal\open_resource('php://input', 'rb') ); } $cache->offsetSet($key, $handle); return $handle; }
Copyright ©2021 || Defacer Indonesia