svn: /phpdoc/en/trunk/reference/url/functions/ parse-url.xml

From: Date: Fri, 04 Feb 2011 11:11:05 +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-7710@lists.php.net to get a copy of this message
aharvey Fri, 04 Feb 2011 11:11:05 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=308017 Log: Fix doc bug #53901 (parse_url() discards invalid port number). Bug: http://bugs.php.net/53901 (Open) parse_url() discards invalid port number 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 2011-02-04 11:04:08 UTC (rev 308016) +++ phpdoc/en/trunk/reference/url/functions/parse-url.xml 2011-02-04 11:11:05 UTC (rev 308017) @@ -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>

« previous php.doc.cvs (#7710) next »