mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
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:
parent
d376395d1d
commit
c616bd78da
1 changed files with 35 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue