<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[49176] trunk/src/wp-includes: External Libraries: Update the SimplePie library to version 1.5.6.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="https://core.trac.wordpress.org/changeset/49176">49176</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"https://core.trac.wordpress.org/changeset/49176","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>desrosj</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2020-10-16 17:18:11 +0000 (Fri, 16 Oct 2020)</dd>
</dl>

<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>External Libraries: Update the SimplePie library to version 1.5.6.

This version fixes a handful of PHP 8 compatibility issues.

A full list of changes included in this update can be found on GitHub: https://github.com/simplepie/simplepie/compare/1.5.5...1.5.6.

Props jrf, ayeshrajans.
Fixes <a href="https://core.trac.wordpress.org/ticket/51521">#51521</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpincludesSimplePieContentTypeSnifferphp">trunk/src/wp-includes/SimplePie/Content/Type/Sniffer.php</a></li>
<li><a href="#trunksrcwpincludesSimplePieFilephp">trunk/src/wp-includes/SimplePie/File.php</a></li>
<li><a href="#trunksrcwpincludesSimplePieLocatorphp">trunk/src/wp-includes/SimplePie/Locator.php</a></li>
<li><a href="#trunksrcwpincludesSimplePieMiscphp">trunk/src/wp-includes/SimplePie/Misc.php</a></li>
<li><a href="#trunksrcwpincludesclasssimplepiephp">trunk/src/wp-includes/class-simplepie.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpincludesSimplePieContentTypeSnifferphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/SimplePie/Content/Type/Sniffer.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/SimplePie/Content/Type/Sniffer.php  2020-10-16 17:12:16 UTC (rev 49175)
+++ trunk/src/wp-includes/SimplePie/Content/Type/Sniffer.php    2020-10-16 17:18:11 UTC (rev 49176)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -150,7 +150,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px">                elseif (preg_match('/[\x00-\x08\x0E-\x1A\x1C-\x1F]/', $this->file->body))
</span><span class="cx" style="display: block; padding: 0 10px">                {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        return 'application/octect-stream';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 return 'application/octet-stream';
</ins><span class="cx" style="display: block; padding: 0 10px">                 }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                return 'text/plain';
</span></span></pre></div>
<a id="trunksrcwpincludesSimplePieFilephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/SimplePie/File.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/SimplePie/File.php  2020-10-16 17:12:16 UTC (rev 49175)
+++ trunk/src/wp-includes/SimplePie/File.php    2020-10-16 17:18:11 UTC (rev 49176)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -109,11 +109,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                curl_setopt($fp, CURLOPT_REFERER, $url);
</span><span class="cx" style="display: block; padding: 0 10px">                                curl_setopt($fp, CURLOPT_USERAGENT, $useragent);
</span><span class="cx" style="display: block; padding: 0 10px">                                curl_setopt($fp, CURLOPT_HTTPHEADER, $headers2);
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                if (!ini_get('open_basedir') && version_compare(SimplePie_Misc::get_curl_version(), '7.15.2', '>='))
-                               {
-                                       curl_setopt($fp, CURLOPT_FOLLOWLOCATION, 1);
-                                       curl_setopt($fp, CURLOPT_MAXREDIRS, $redirects);
-                               }
</del><span class="cx" style="display: block; padding: 0 10px">                                 foreach ($curl_options as $curl_param => $curl_value) {
</span><span class="cx" style="display: block; padding: 0 10px">                                        curl_setopt($fp, $curl_param, $curl_value);
</span><span class="cx" style="display: block; padding: 0 10px">                                }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -148,7 +143,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                                        $this->redirects++;
</span><span class="cx" style="display: block; padding: 0 10px">                                                        $location = SimplePie_Misc::absolutize_url($this->headers['location'], $url);
</span><span class="cx" style="display: block; padding: 0 10px">                                                        $previousStatusCode = $this->status_code;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                        $this->__construct($location, $timeout, $redirects, $headers, $useragent, $force_fsockopen);
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                                 $this->__construct($location, $timeout, $redirects, $headers, $useragent, $force_fsockopen, $curl_options);
</ins><span class="cx" style="display: block; padding: 0 10px">                                                         $this->permanent_url = ($previousStatusCode == 301) ? $location : $url;
</span><span class="cx" style="display: block; padding: 0 10px">                                                        return;
</span><span class="cx" style="display: block; padding: 0 10px">                                                }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -233,7 +228,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                                                $this->redirects++;
</span><span class="cx" style="display: block; padding: 0 10px">                                                                $location = SimplePie_Misc::absolutize_url($this->headers['location'], $url);
</span><span class="cx" style="display: block; padding: 0 10px">                                                                $previousStatusCode = $this->status_code;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                                $this->__construct($location, $timeout, $redirects, $headers, $useragent, $force_fsockopen);
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                                         $this->__construct($location, $timeout, $redirects, $headers, $useragent, $force_fsockopen, $curl_options);
</ins><span class="cx" style="display: block; padding: 0 10px">                                                                 $this->permanent_url = ($previousStatusCode == 301) ? $location : $url;
</span><span class="cx" style="display: block; padding: 0 10px">                                                                return;
</span><span class="cx" style="display: block; padding: 0 10px">                                                        }
</span></span></pre></div>
<a id="trunksrcwpincludesSimplePieLocatorphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/SimplePie/Locator.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/SimplePie/Locator.php       2020-10-16 17:12:16 UTC (rev 49175)
+++ trunk/src/wp-includes/SimplePie/Locator.php 2020-10-16 17:18:11 UTC (rev 49176)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -94,7 +94,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->registry = $registry;
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public function find($type = SIMPLEPIE_LOCATOR_ALL, &$working)
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function find($type = SIMPLEPIE_LOCATOR_ALL, &$working = null)
</ins><span class="cx" style="display: block; padding: 0 10px">         {
</span><span class="cx" style="display: block; padding: 0 10px">                if ($this->is_feed($this->file))
</span><span class="cx" style="display: block; padding: 0 10px">                {
</span></span></pre></div>
<a id="trunksrcwpincludesSimplePieMiscphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/SimplePie/Misc.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/SimplePie/Misc.php  2020-10-16 17:12:16 UTC (rev 49175)
+++ trunk/src/wp-includes/SimplePie/Misc.php    2020-10-16 17:18:11 UTC (rev 49176)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -364,11 +364,12 @@
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Check that the encoding is supported
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                if (@mb_convert_encoding("\x80", 'UTF-16BE', $input) === "\x00\x80")
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         if (!in_array($input, mb_list_encodings()))
</ins><span class="cx" style="display: block; padding: 0 10px">                 {
</span><span class="cx" style="display: block; padding: 0 10px">                        return false;
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                if (!in_array($input, mb_list_encodings()))
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+               if (@mb_convert_encoding("\x80", 'UTF-16BE', $input) === "\x00\x80")
</ins><span class="cx" style="display: block; padding: 0 10px">                 {
</span><span class="cx" style="display: block; padding: 0 10px">                        return false;
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span></span></pre></div>
<a id="trunksrcwpincludesclasssimplepiephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/class-simplepie.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-simplepie.php 2020-10-16 17:12:16 UTC (rev 49175)
+++ trunk/src/wp-includes/class-simplepie.php   2020-10-16 17:18:11 UTC (rev 49176)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -68,7 +68,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * POSSIBILITY OF SUCH DAMAGE.
</span><span class="cx" style="display: block; padding: 0 10px">  *
</span><span class="cx" style="display: block; padding: 0 10px">  * @package SimplePie
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @version 1.5.5
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @version 1.5.6
</ins><span class="cx" style="display: block; padding: 0 10px">  * @copyright 2004-2017 Ryan Parman, Sam Sneddon, Ryan McCue
</span><span class="cx" style="display: block; padding: 0 10px">  * @author Ryan Parman
</span><span class="cx" style="display: block; padding: 0 10px">  * @author Sam Sneddon
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -85,7 +85,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px">  * SimplePie Version
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-define('SIMPLEPIE_VERSION', '1.5.5');
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+define('SIMPLEPIE_VERSION', '1.5.6');
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px">  * SimplePie Build
</span></span></pre>
</div>
</div>

</body>
</html>