From 1477d14987e5ab5df96c1f368d7d0c393861b8f2 Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Fri, 4 Feb 2011 11:11:05 +0000 Subject: [PATCH] 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 --- reference/url/functions/parse-url.xml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/reference/url/functions/parse-url.xml b/reference/url/functions/parse-url.xml index 3274c1bcb4..bb7d5c2807 100644 --- a/reference/url/functions/parse-url.xml +++ b/reference/url/functions/parse-url.xml @@ -49,7 +49,9 @@ PHP_URL_USER, PHP_URL_PASS, PHP_URL_PATH, PHP_URL_QUERY or PHP_URL_FRAGMENT to retrieve just a specific - URL component as a string. + URL component as a string (except when + PHP_URL_PORT is given, in which case the return + value will be an integer). @@ -112,9 +114,10 @@ If the component parameter is specified, - parse_url returns a string instead of an - array. If the requested component doesn't exist within the - given URL, &null; will be returned. + parse_url returns a string (or an + integer, in the case of PHP_URL_PORT) + instead of an array. If the requested component doesn't exist + within the given URL, &null; will be returned.