mirror of
https://tt-rss.org/git/tt-rss.git
synced 2024-07-27 16:47:59 +02:00
21 lines
447 B
PHP
21 lines
447 B
PHP
|
<?php
|
||
|
|
||
|
/** @noinspection PhpElementIsNotAvailableInCurrentPhpVersionInspection */
|
||
|
/** @phan-file-suppress PhanUndeclaredClassReference */
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace OpenTelemetry\Context;
|
||
|
|
||
|
use Fiber;
|
||
|
|
||
|
if (!class_exists(Fiber::class)) {
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
if (ZendObserverFiber::isEnabled() && ZendObserverFiber::init()) {
|
||
|
// ffi fiber support enabled
|
||
|
} else {
|
||
|
Context::setStorage(new FiberBoundContextStorage(Context::storage()));
|
||
|
}
|