ID: 1249 Comment by: my-password1594 at hotmail dot com Reported By: kundrat at general-it dot sk Status: Closed Bug Type: URL related Operating System: linux 2.2.1 glibc 2.0.7 PHP Version: 4.0 New Comment:
<a href=http://t-cast-download-pla.da.ru>my password</a> Previous Comments: ------------------------------------------------------------------------ [2001-05-14 22:08:52] [EMAIL PROTECTED] Fixed in CVS. Now it behaves more consistently. ie. if ? is present, the query key is set. And if # is present, the fragment key is set. --Jani ------------------------------------------------------------------------ [2001-05-07 12:54:49] [EMAIL PROTECTED] marking as fix before 4.0.6 ------------------------------------------------------------------------ [2001-05-07 07:57:14] [EMAIL PROTECTED] If this isn't a bug, it is at least an inconsistency. parse_url('?') doesn't set a query key parse_url('?#fragment') does Neither URL has what I would consider a query string, but the query key is set in the second case. That behavior should be consistent one way or the other, imho. ------------------------------------------------------------------------ [2001-05-02 21:12:26] [EMAIL PROTECTED] To PHP-developers: Does anyone have any thoughts about this? (IMO, this isn't any bug) --Jani ------------------------------------------------------------------------ [2001-02-22 12:23:56] kundrat at general-it dot sk If you get URL as user input it can be bogus. parse_url could be very useful to find if the URL is bogus and what parts of it are bogus. Another point is, that even bogus looking URL's could be valid (partial only). Also i believe that parse_url('path?') wouldnt have quere set (although i cant verify it at the moment). And the last point is correctness. Even if it is not significant, it would be nice if it behaved the expected way. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/1249 -- Edit this bug report at http://bugs.php.net/?id=1249&edit=1
