Changeset 57876
- Timestamp:
- 03/25/2024 12:21:36 PM (11 months ago)
- Location:
- trunk/src/wp-includes/Requests/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/Requests/src/Cookie.php
r55629 r57876 471 471 * @param int|null $time Reference time for expiration calculation 472 472 * @return array 473 */ 474 public static function parse_from_headers(Headers $headers, Iri $origin = null, $time = null) { 473 * 474 * @throws \WpOrg\Requests\Exception\InvalidArgument When the passed $origin argument is not null or an instance of the Iri class. 475 */ 476 public static function parse_from_headers(Headers $headers, $origin = null, $time = null) { 475 477 $cookie_headers = $headers->getValues('Set-Cookie'); 476 478 if (empty($cookie_headers)) { 477 479 return []; 480 } 481 482 if ($origin !== null && !($origin instanceof Iri)) { 483 throw InvalidArgument::create(2, '$origin', Iri::class . ' or null', gettype($origin)); 478 484 } 479 485 -
trunk/src/wp-includes/Requests/src/Requests.php
r57086 r57876 149 149 * @var string 150 150 */ 151 const VERSION = '2.0. 9';151 const VERSION = '2.0.11'; 152 152 153 153 /** -
trunk/src/wp-includes/Requests/src/Transport/Fsockopen.php
r55629 r57876 145 145 } 146 146 147 stream_context_set_option($context, ['ssl' => $context_options]); 147 // Handle the PHP 8.4 deprecation (PHP 9.0 removal) of the function signature we use for stream_context_set_option(). 148 // Ref: https://wiki.php.net/rfc/deprecate_functions_with_overloaded_signatures#stream_context_set_option 149 if (function_exists('stream_context_set_options')) { 150 // PHP 8.3+. 151 stream_context_set_options($context, ['ssl' => $context_options]); 152 } else { 153 // PHP < 8.3. 154 stream_context_set_option($context, ['ssl' => $context_options]); 155 } 148 156 } else { 149 157 $remote_socket = 'tcp://' . $host;
Note: See TracChangeset
for help on using the changeset viewer.