Updated change log and added a new example to reflect behavior for host/scheme recognition fix.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327646 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Sherif Ramadan 2012-09-14 01:39:08 +00:00
parent d376395d1d
commit c616bd78da

View file

@ -133,6 +133,13 @@
</row>
</thead>
<tbody>
<row>
<entry>5.4.7</entry>
<entry>
Fixed <emphasis>host</emphasis> recognition when <emphasis>scheme</emphasis>
is ommitted and a leading component seperator is present.
</entry>
</row>
<row>
<entry>5.3.3</entry>
<entry>
@ -180,6 +187,34 @@ Array
[fragment] => anchor
)
/path
]]>
</screen>
</example>
</para>
<para>
<example>
<title>A <function>parse_url</function> example with missing scheme</title>
<programlisting role="php">
<![CDATA[
<?php
$url = '//www.example.com/path?googleguy=googley';
// Prior to 5.4.7 this would show the path as "//www.example.com/path"
var_dump(parse_url($url));
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
array(3) {
["host"]=>
string(15) "www.example.com"
["path"]=>
string(5) "/path"
["query"]=>
string(17) "googleguy=googley"
}
]]>
</screen>
</example>