#20420 [Opn->Asn]: parse_url broken on partial URLs

From: Date: Thu, 14 Nov 2002 09:13:06 +0000
Subject: #20420 [Opn->Asn]: parse_url broken on partial URLs
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-24868@lists.php.net to get a copy of this message
ID: 20420 Updated by: derick@php.net Reported By: pallo-php@initio.no -Status: Open +Status: Assigned Bug Type: URL related Operating System: Linux PHP Version: 4.3.0-pre2 -Assigned To: +Assigned To: ilia New Comment: Assinging to Ilia Previous Comments: ------------------------------------------------------------------------ [2002-11-14 02:56:30] pallo-php@initio.no In 4.2.x, parsing the partial URL "/foo.php?a=b&c=d" returned array(2) { ["path"]=> string(8) "/foo.php" ["query"]=> string(7) "a=b&c=d" } but in 4.3.0-pre2 the query part is not recognized an parse_url() return array(1) { ["path"]=> string(16) "/foo.php?a=b&c=d" } The parse_url() function also have problems with URLs like "file:///foo.txt", where the host is absent, and "mailto:user@domain". Both URLs were handled properly in 4.2.x ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20420&edit=1

« previous php.bugs (#24868) next »