Файловый менеджер - Редактировать - /home/kckglobal/public_html/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; }
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка