Make WordPress Core


Ignore:
Timestamp:
09/16/2025 10:45:37 PM (2 months ago)
Author:
SergeyBiryukov
Message:

External Libraries: Update the SimplePie library to version 1.9.0.

References:

Follow-up to [59141], [60490].

Props swissspidy, TobiasBg, SergeyBiryukov.
Fixes #63961.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/SimplePie/src/Cache/Psr16.php

    r59141 r60771  
    11<?php
    22
    3 /**
    4  * SimplePie
    5  *
    6  * A PHP-Based RSS and Atom Feed Framework.
    7  * Takes the hard work out of managing a complete RSS/Atom solution.
    8  *
    9  * Copyright (c) 2004-2022, Ryan Parman, Sam Sneddon, Ryan McCue, and contributors
    10  * All rights reserved.
    11  *
    12  * Redistribution and use in source and binary forms, with or without modification, are
    13  * permitted provided that the following conditions are met:
    14  *
    15  *  * Redistributions of source code must retain the above copyright notice, this list of
    16  *    conditions and the following disclaimer.
    17  *
    18  *  * Redistributions in binary form must reproduce the above copyright notice, this list
    19  *    of conditions and the following disclaimer in the documentation and/or other materials
    20  *    provided with the distribution.
    21  *
    22  *  * Neither the name of the SimplePie Team nor the names of its contributors may be used
    23  *    to endorse or promote products derived from this software without specific prior
    24  *    written permission.
    25  *
    26  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS
    27  * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
    28  * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS
    29  * AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    30  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
    31  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
    32  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
    33  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    34  * POSSIBILITY OF SUCH DAMAGE.
    35  *
    36  * @package SimplePie
    37  * @copyright 2004-2022 Ryan Parman, Sam Sneddon, Ryan McCue
    38  * @author Ryan Parman
    39  * @author Sam Sneddon
    40  * @author Ryan McCue
    41  * @link http://simplepie.org/ SimplePie
    42  * @license http://www.opensource.org/licenses/bsd-license.php BSD License
    43  */
     3// SPDX-FileCopyrightText: 2004-2023 Ryan Parman, Sam Sneddon, Ryan McCue
     4// SPDX-License-Identifier: BSD-3-Clause
     5
     6declare(strict_types=1);
    447
    458namespace SimplePie\Cache;
     
    4710use Psr\SimpleCache\CacheInterface;
    4811use Psr\SimpleCache\InvalidArgumentException;
     12use Throwable;
    4913
    5014/**
    5115 * Caches data into a PSR-16 cache implementation
    5216 *
    53  * @package SimplePie
    54  * @subpackage Caching
    5517 * @internal
    5618 */
     
    8749     * @return array|mixed The value of the item from the cache, or $default in case of cache miss.
    8850     *
    89      * @throws InvalidArgumentException
     51     * @throws InvalidArgumentException&Throwable
    9052     *   MUST be thrown if the $key string is not a legal value.
    9153     */
     
    11072     *
    11173     * @param string   $key   The key of the item to store.
    112      * @param array    $value The value of the item to store, must be serializable.
     74     * @param array<mixed> $value The value of the item to store, must be serializable.
    11375     * @param null|int $ttl   Optional. The TTL value of this item. If no value is sent and
    11476     *                                      the driver supports TTL then the library may set a default value
     
    11779     * @return bool True on success and false on failure.
    11880     *
    119      * @throws InvalidArgumentException
     81     * @throws InvalidArgumentException&Throwable
    12082     *   MUST be thrown if the $key string is not a legal value.
    12183     */
     
    13799     * @return bool True if the item was successfully removed. False if there was an error.
    138100     *
    139      * @throws InvalidArgumentException
     101     * @throws InvalidArgumentException&Throwable
    140102     *   MUST be thrown if the $key string is not a legal value.
    141103     */
Note: See TracChangeset for help on using the changeset viewer.