#20420 [NEW]: parse_url broken on partial URLs
| From: | pallo-php at initio dot no | Date: | Thu, 14 Nov 2002 08:56:30 +0000 |
| Subject: | #20420 [NEW]: parse_url broken on partial URLs | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-24866@lists.php.net to get a copy of this message | ||
From: pallo-php@initio.no
Operating system: Linux
PHP version: 4.3.0-pre2
PHP Bug Type: URL related
Bug description: parse_url broken on partial URLs
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 bug report at http://bugs.php.net/?id=20420&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20420&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=20420&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=20420&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20420&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=20420&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=20420&r=support
Expected behavior: http://bugs.php.net/fix.php?id=20420&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=20420&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=20420&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=20420&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20420&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=20420&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=20420&r=isapi