Fixed doc bug #53371 (parse_url docs say it returns FALSE on malformed URLs. It

may return NULL.) by reworking the return values section of the parse_url()
manual page.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@305689 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Adam Harvey 2010-11-23 11:07:51 +00:00
parent f851c80f54
commit b4fd230b17

View file

@ -61,8 +61,12 @@
&reftitle.returnvalues;
<para>
On seriously malformed URLs, <function>parse_url</function> may return
&false;. Otherwise an associative array is returned, whose components may
be (at least one):
&false;.
</para>
<para>
If the <parameter>component</parameter> parameter is omitted, an
associative <type>array</type> is returned. At least one element will be
present within the array. Potential keys within this array are:
<itemizedlist>
<listitem>
<simpara>
@ -107,8 +111,10 @@
</itemizedlist>
</para>
<para>
If the <parameter>component</parameter> parameter is specified a
<type>string</type> is returned instead of an <type>array</type>.
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.
</para>
</refsect1>