Re: parse_url bug/feature?

From: Date: Mon, 16 Sep 2002 12:45:32 +0000
Subject: Re: parse_url bug/feature?
References: 1 2  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969348694@lists.php.net to get a copy of this message
> > 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.2 > > valid 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 So then this would be nice to be documented. Goba

« previous php.doc (#969348694) next »