svn: /phpdoc/en/trunk/reference/url/functions/ parse-url.xml
| From: | Adam Harvey | Date: | Tue, 23 Nov 2010 11:07:51 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/url/functions/ parse-url.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-7462@lists.php.net to get a copy of this message | ||
aharvey Tue, 23 Nov 2010 11:07:51 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=305689
Log:
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.
Bug: http://bugs.php.net/53371 (error getting bug
information)
Changed paths:
U phpdoc/en/trunk/reference/url/functions/parse-url.xml
Modified: phpdoc/en/trunk/reference/url/functions/parse-url.xml
===================================================================
--- phpdoc/en/trunk/reference/url/functions/parse-url.xml 2010-11-23 10:58:37 UTC (rev 305688)
+++ phpdoc/en/trunk/reference/url/functions/parse-url.xml 2010-11-23 11:07:51 UTC (rev 305689)
@@ -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>