note 28015 rejected from function.parse-url by jmcastagnetto

From: Date: Mon, 30 Dec 2002 08:05:56 +0000
Subject: note 28015 rejected from function.parse-url by jmcastagnetto
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-41456@lists.php.net to get a copy of this message
Be carreful, PHP 4.3.0 introduces a bug in parsing of url : If you want to parse an url with a port number eg : http://user:password@host:8080 there is no problem, but if you want to parse an url with a query after port number (and without path), eg : http://user:password@host:8080?test=a It fails with a warning error. Solution : You *Must* put a trailing / after port number eg : http://user:password@host:8080/?test=a This bug was submit to bugs.php.net and, I hope will be corrected, since parse_url is no compliant with RFC 2396 (Uniform Resource Identifiers (URI): Generic Syntax).

« previous php.notes (#41456) next »