Fix doc bug #53901 (parse_url() discards invalid port number).

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@308017 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Adam Harvey 2011-02-04 11:11:05 +00:00
parent fead37cf3b
commit 1477d14987

View file

@ -49,7 +49,9 @@
<constant>PHP_URL_USER</constant>, <constant>PHP_URL_PASS</constant>,
<constant>PHP_URL_PATH</constant>, <constant>PHP_URL_QUERY</constant>
or <constant>PHP_URL_FRAGMENT</constant> to retrieve just a specific
URL component as a <type>string</type>.
URL component as a <type>string</type> (except when
<constant>PHP_URL_PORT</constant> is given, in which case the return
value will be an <type>integer</type>).
</para>
</listitem>
</varlistentry>
@ -112,9 +114,10 @@
</para>
<para>
If the <parameter>component</parameter> parameter is specified,
<function>parse_url</function> returns a <type>string</type> instead of an
<type>array</type>. If the requested component doesn't exist within the
given URL, &null; will be returned.
<function>parse_url</function> returns a <type>string</type> (or an
<type>integer</type>, in the case of <constant>PHP_URL_PORT</constant>)
instead of an <type>array</type>. If the requested component doesn't exist
within the given URL, &null; will be returned.
</para>
</refsect1>