Файловый менеджер - Редактировать - /home/kckglobal/public_html/portal/vendor/azjezz/psl/src/Psl/IO/error_handle.php
Назад
<?php declare(strict_types=1); namespace Psl\IO; use Revolt\EventLoop; use WeakMap; use const PHP_SAPI; /** * Return the output handle for the current request. * * This should generally be used for sending data to clients. In CLI mode, this * is usually the process STDOUT. * * @codeCoverageIgnore */ function error_handle(): ?CloseWriteStreamHandleInterface { /** @var WeakMap|null $cache */ static $cache = null; if (null === $cache) { $cache = new WeakMap(); } $key = EventLoop::getDriver(); if ($cache->offsetExists($key)) { /** @var CloseWriteStreamHandleInterface|null */ return $cache->offsetGet($key); } $handle = null; if (PHP_SAPI === "cli") { $handle = new CloseWriteStreamHandle( Internal\open_resource('php://stderr', 'wb') ); } $cache->offsetSet($key, $handle); return $handle; }
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка