Файловый менеджер - Редактировать - /home/tuudkjt/globeasy/wp-content/plugins/reviewx/vendor/hassankhan/config/src/Parser/Serialize.php
Назад
<?php namespace Rvx\Noodlehaus\Parser; use Rvx\Noodlehaus\Exception\ParseException; /** * Class Serialize * * @package Config */ class Serialize implements ParserInterface { /** * {@inheritdoc} */ public function parseFile($filename) { $data = \file_get_contents($filename); return (array) $this->parse($data, $filename); } /** * {@inheritdoc} */ public function parseString($config) { return (array) $this->parse($config); } /** * Completes parsing of JSON data * * @param string $data * @param string $filename * @return array|null * * @throws ParseException If there is an error parsing the serialized data */ protected function parse($data = null, $filename = null) { $serializedData = @\unserialize($data); if ($serializedData === \false) { throw new ParseException(\error_get_last()); } return $serializedData; } /** * {@inheritdoc} */ public static function getSupportedExtensions() { return ['txt']; } }
| ver. 1.6 |
Github
|
.
| PHP 8.1.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка