Re: parse_url bug/feature?
| From: | Hartmut Holzgraefe | Date: | Mon, 16 Sep 2002 10:42:51 +0000 |
| Subject: | Re: parse_url bug/feature? | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969348693@lists.php.net to get a copy of this message | ||
Steven Larsen wrote:
Noticed that parse_url returns null values for scheme (expected) and host (not expected) if you pass a url that contains no protocol info (e.g. www.homecentricity.com). Am testing this on Windows 98 using PHP version 4.2.2valid and expected behaviour if no scheme is given the argument is treated as a filesystem path, here a file named "www.homecentricity.com" in the current working directory just because browsers take input like this in their location bars as http URLs doesn't say everything should -- Six Offene Systeme GmbH http://www.six.de/ i.A. Hartmut Holzgraefe Email: hartmut@six.de Tel.: +49-711-99091-77