<!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>[58682] trunk: Code Modernization: Remove obsolete comments about older PHP versions.</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/58682">58682</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/58682","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>SergeyBiryukov</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2024-07-06 14:52:05 +0000 (Sat, 06 Jul 2024)</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'>Code Modernization: Remove obsolete comments about older PHP versions.

This commit:
* Removes various comments referencing PHP versions which are no longer supported.
* Removes various comments containing {U+201C}hints{U+201D} of things to do after a particular PHP version drop. These hints are incorrect/not actionable for various reasons, so have no value:
 * Even though a function could be turned into a closure, removing the function would be a backward compatibility break which is not acceptable, so this suggestion is not actionable.
 * Short ternaries are forbidden by the coding standard exactly to prevent the faulty code suggested in the comment from getting into the codebase.

Follow-up to [1243/tests], <a href="https://core.trac.wordpress.org/changeset/6543">[6543]</a>, <a href="https://core.trac.wordpress.org/changeset/11816">[11816]</a>, <a href="https://core.trac.wordpress.org/changeset/29861">[29861]</a>, <a href="https://core.trac.wordpress.org/changeset/29864">[29864]</a>, <a href="https://core.trac.wordpress.org/changeset/34928">[34928]</a>, <a href="https://core.trac.wordpress.org/changeset/35369">[35369]</a>, <a href="https://core.trac.wordpress.org/changeset/36698">[36698]</a>, <a href="https://core.trac.wordpress.org/changeset/38694">[38694]</a>, <a href="https://core.trac.wordpress.org/changeset/50786">[50786]</a>, <a href="https://core.trac.wordpress.org/changeset/58678">[58678]</a>.

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

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpadminincludesmetaboxesphp">trunk/src/wp-admin/includes/meta-boxes.php</a></li>
<li><a href="#trunksrcwpincludesclasswpcustomizemanagerphp">trunk/src/wp-includes/class-wp-customize-manager.php</a></li>
<li><a href="#trunksrcwpincludesclasswpobjectcachephp">trunk/src/wp-includes/class-wp-object-cache.php</a></li>
<li><a href="#trunksrcwpincludeshttpphp">trunk/src/wp-includes/http.php</a></li>
<li><a href="#trunksrcwpincludesloadphp">trunk/src/wp-includes/load.php</a></li>
<li><a href="#trunksrcwpincludesrestapiclasswprestrequestphp">trunk/src/wp-includes/rest-api/class-wp-rest-request.php</a></li>
<li><a href="#trunktestsphpunittestsformattingescTextareaphp">trunk/tests/phpunit/tests/formatting/escTextarea.php</a></li>
<li><a href="#trunktestsphpunittestsformattingwpHtmleditPrephp">trunk/tests/phpunit/tests/formatting/wpHtmleditPre.php</a></li>
<li><a href="#trunktestsphpunittestsformattingwpRicheditPrephp">trunk/tests/phpunit/tests/formatting/wpRicheditPre.php</a></li>
<li><a href="#trunktestsphpunittestshttphttpphp">trunk/tests/phpunit/tests/http/http.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpadminincludesmetaboxesphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/meta-boxes.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/meta-boxes.php        2024-07-06 10:18:03 UTC (rev 58681)
+++ trunk/src/wp-admin/includes/meta-boxes.php  2024-07-06 14:52:05 UTC (rev 58682)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1270,7 +1270,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                _deprecated_argument( __FUNCTION__, '2.5.0' ); // Never implemented.
</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">-        $link_rel  = isset( $link->link_rel ) ? $link->link_rel : ''; // In PHP 5.3: $link_rel = $link->link_rel ?: '';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $link_rel  = isset( $link->link_rel ) ? $link->link_rel : '';
</ins><span class="cx" style="display: block; padding: 0 10px">         $link_rels = preg_split( '/\s+/', $link_rel );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        // Mark the specified value as checked if it matches the current link's relationship.
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpcustomizemanagerphp"></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-wp-customize-manager.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-customize-manager.php      2024-07-06 10:18:03 UTC (rev 58681)
+++ trunk/src/wp-includes/class-wp-customize-manager.php        2024-07-06 14:52:05 UTC (rev 58682)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -6141,8 +6141,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * This method exists because the partial object and context data are passed
</span><span class="cx" style="display: block; padding: 0 10px">         * into a partial's render_callback so we cannot use get_custom_logo() as
</span><span class="cx" style="display: block; padding: 0 10px">         * the render_callback directly since it expects a blog ID as the first
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * argument. When WP no longer supports PHP 5.3, this method can be removed
-        * in favor of an anonymous function.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * argument.
</ins><span class="cx" style="display: block; padding: 0 10px">          *
</span><span class="cx" style="display: block; padding: 0 10px">         * @see WP_Customize_Manager::register_controls()
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpobjectcachephp"></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-wp-object-cache.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-object-cache.php   2024-07-06 10:18:03 UTC (rev 58681)
+++ trunk/src/wp-includes/class-wp-object-cache.php     2024-07-06 14:52:05 UTC (rev 58682)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -73,7 +73,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        private $multisite;
</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">-         * Sets up object properties; PHP 5 style constructor.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * Sets up object properties.
</ins><span class="cx" style="display: block; padding: 0 10px">          *
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 2.0.8
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span></span></pre></div>
<a id="trunksrcwpincludeshttpphp"></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/http.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/http.php    2024-07-06 10:18:03 UTC (rev 58681)
+++ trunk/src/wp-includes/http.php      2024-07-06 14:52:05 UTC (rev 58682)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -699,13 +699,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * A wrapper for PHP's parse_url() function that handles consistency in the return values
</span><span class="cx" style="display: block; padding: 0 10px">  * across PHP versions.
</span><span class="cx" style="display: block; padding: 0 10px">  *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * PHP 5.4.7 expanded parse_url()'s ability to handle non-absolute URLs, including
- * schemeless and relative URLs with "://" in the path. This function works around
- * those limitations providing a standard output on PHP 5.2~5.4+.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Across various PHP versions, schemeless URLs containing a ":" in the query
+ * are being handled inconsistently. This function works around those differences.
</ins><span class="cx" style="display: block; padding: 0 10px">  *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Secondly, across various PHP versions, schemeless URLs containing a ":" in the query
- * are being handled inconsistently. This function works around those differences as well.
- *
</del><span class="cx" style="display: block; padding: 0 10px">  * @since 4.4.0
</span><span class="cx" style="display: block; padding: 0 10px">  * @since 4.7.0 The `$component` parameter was added for parity with PHP's `parse_url()`.
</span><span class="cx" style="display: block; padding: 0 10px">  *
</span></span></pre></div>
<a id="trunksrcwpincludesloadphp"></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/load.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/load.php    2024-07-06 10:18:03 UTC (rev 58681)
+++ trunk/src/wp-includes/load.php      2024-07-06 14:52:05 UTC (rev 58682)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -453,8 +453,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px">  * Gets the time elapsed so far during this PHP script.
</span><span class="cx" style="display: block; padding: 0 10px">  *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Uses REQUEST_TIME_FLOAT that appeared in PHP 5.4.0.
- *
</del><span class="cx" style="display: block; padding: 0 10px">  * @since 5.8.0
</span><span class="cx" style="display: block; padding: 0 10px">  *
</span><span class="cx" style="display: block; padding: 0 10px">  * @return float Seconds since the PHP script started.
</span></span></pre></div>
<a id="trunksrcwpincludesrestapiclasswprestrequestphp"></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/rest-api/class-wp-rest-request.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/rest-api/class-wp-rest-request.php  2024-07-06 10:18:03 UTC (rev 58681)
+++ trunk/src/wp-includes/rest-api/class-wp-rest-request.php    2024-07-06 14:52:05 UTC (rev 58682)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -709,7 +709,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * Parses the request body parameters.
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="cx" style="display: block; padding: 0 10px">         * Parses out URL-encoded bodies for request methods that aren't supported
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * natively by PHP. In PHP 5.x, only POST has these parsed automatically.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * natively by PHP.
</ins><span class="cx" style="display: block; padding: 0 10px">          *
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 4.4.0
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span></span></pre></div>
<a id="trunktestsphpunittestsformattingescTextareaphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/formatting/escTextarea.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/formatting/escTextarea.php      2024-07-06 10:18:03 UTC (rev 58681)
+++ trunk/tests/phpunit/tests/formatting/escTextarea.php        2024-07-06 14:52:05 UTC (rev 58682)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -12,7 +12,6 @@
</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">        /*
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * Only fails in PHP 5.4 onwards
</del><span class="cx" style="display: block; padding: 0 10px">          * @ticket 23688
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_esc_textarea_charset_iso_8859_1() {
</span></span></pre></div>
<a id="trunktestsphpunittestsformattingwpHtmleditPrephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/formatting/wpHtmleditPre.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/formatting/wpHtmleditPre.php    2024-07-06 10:18:03 UTC (rev 58681)
+++ trunk/tests/phpunit/tests/formatting/wpHtmleditPre.php      2024-07-06 14:52:05 UTC (rev 58682)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -13,7 +13,6 @@
</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">        /*
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * Only fails in PHP 5.4 onwards
</del><span class="cx" style="display: block; padding: 0 10px">          * @ticket 23688
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_htmledit_pre_charset_iso_8859_1() {
</span></span></pre></div>
<a id="trunktestsphpunittestsformattingwpRicheditPrephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/formatting/wpRicheditPre.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/formatting/wpRicheditPre.php    2024-07-06 10:18:03 UTC (rev 58681)
+++ trunk/tests/phpunit/tests/formatting/wpRicheditPre.php      2024-07-06 14:52:05 UTC (rev 58682)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -13,7 +13,6 @@
</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">        /*
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * Only fails in PHP 5.4 onwards
</del><span class="cx" style="display: block; padding: 0 10px">          * @ticket 23688
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_richedit_pre_charset_iso_8859_1() {
</span></span></pre></div>
<a id="trunktestsphpunittestshttphttpphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/http/http.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/http/http.php   2024-07-06 10:18:03 UTC (rev 58681)
+++ trunk/tests/phpunit/tests/http/http.php     2024-07-06 14:52:05 UTC (rev 58682)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -114,7 +114,7 @@
</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"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        // < PHP 5.4.7: Schemeless URL.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 // Schemeless URL.
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                '//example.com/path/',
</span><span class="cx" style="display: block; padding: 0 10px">                                array(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -138,7 +138,7 @@
</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"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        // < PHP 5.4.7: Scheme separator in the URL.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 // Scheme separator in the URL.
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'http://example.com/http://example.net/',
</span><span class="cx" style="display: block; padding: 0 10px">                                array(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -149,7 +149,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        ),
</span><span class="cx" style="display: block; padding: 0 10px">                        array( '/path/http://example.net/', array( 'path' => '/path/http://example.net/' ) ),
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        // < PHP 5.4.7: IPv6 literals in schemeless URLs are handled incorrectly.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 // IPv6 literals in schemeless URLs.
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                '//[::FFFF::127.0.0.1]/',
</span><span class="cx" style="display: block; padding: 0 10px">                                array(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -238,7 +238,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        array( self::FULL_TEST_URL, PHP_URL_QUERY, 'arg1=value1&arg2=value2' ),
</span><span class="cx" style="display: block; padding: 0 10px">                        array( self::FULL_TEST_URL, PHP_URL_FRAGMENT, 'anchor' ),
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        // < PHP 5.4.7: Schemeless URL.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 // Schemeless URL.
</ins><span class="cx" style="display: block; padding: 0 10px">                         array( '//example.com/path/', PHP_URL_HOST, 'example.com' ),
</span><span class="cx" style="display: block; padding: 0 10px">                        array( '//example.com/path/', PHP_URL_PATH, '/path/' ),
</span><span class="cx" style="display: block; padding: 0 10px">                        array( '//example.com/', PHP_URL_HOST, 'example.com' ),
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -246,13 +246,13 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        array( 'http://example.com//path/', PHP_URL_HOST, 'example.com' ),
</span><span class="cx" style="display: block; padding: 0 10px">                        array( 'http://example.com//path/', PHP_URL_PATH, '//path/' ),
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        // < PHP 5.4.7: Scheme separator in the URL.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 // Scheme separator in the URL.
</ins><span class="cx" style="display: block; padding: 0 10px">                         array( 'http://example.com/http://example.net/', PHP_URL_HOST, 'example.com' ),
</span><span class="cx" style="display: block; padding: 0 10px">                        array( 'http://example.com/http://example.net/', PHP_URL_PATH, '/http://example.net/' ),
</span><span class="cx" style="display: block; padding: 0 10px">                        array( '/path/http://example.net/', PHP_URL_HOST, null ),
</span><span class="cx" style="display: block; padding: 0 10px">                        array( '/path/http://example.net/', PHP_URL_PATH, '/path/http://example.net/' ),
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        // < PHP 5.4.7: IPv6 literals in schemeless URLs are handled incorrectly.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 // IPv6 literals in schemeless URLs.
</ins><span class="cx" style="display: block; padding: 0 10px">                         array( '//[::FFFF::127.0.0.1]/', PHP_URL_HOST, '[::FFFF::127.0.0.1]' ),
</span><span class="cx" style="display: block; padding: 0 10px">                        array( '//[::FFFF::127.0.0.1]/', PHP_URL_PATH, '/' ),
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre>
</div>
</div>

</body>
</html>