Файловый менеджер - Редактировать - /home/kckglobal/public_html/portal/vendor/azjezz/psl/src/Psl/Regex/Internal/call_preg.php
Назад
<?php declare(strict_types=1); namespace Psl\Regex\Internal; use Closure; use Psl\Internal; use Psl\Regex\Exception; /** * @template T * * @param non-empty-string $function * @param Closure(): T $closure * * @throws Exception\InvalidPatternException * @throws Exception\RuntimeException * * @return T * * @pure * * @internal */ function call_preg(string $function, Closure $closure): mixed { /** @psalm-suppress ImpureFunctionCall */ error_clear_last(); /** @psalm-suppress ImpureFunctionCall */ $result = Internal\suppress($closure); $error = get_preg_error($function); // @codeCoverageIgnoreStart if (null !== $error) { if (null !== $error['pattern_message']) { throw new Exception\InvalidPatternException($error['pattern_message'], $error['code']); } throw new Exception\RuntimeException($error['message'], $error['code']); } // @codeCoverageIgnoreEnd return $result; }
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка