|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20919 parse_url mishandles usernames with '@' signs
Submitted: 2002-12-10 05:10 UTC Modified: 2002-12-10 05:13 UTC
From: danny at kyboshed dot com Assigned:
Status: Not a bug Package: URL related
PHP Version: 4.2.3 OS: FreeBSD 4.6
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: danny at kyboshed dot com
New email:
PHP Version: OS:


 [2002-12-10 05:10 UTC] danny at kyboshed dot com
parse_url breaks if a username containing an '@' sign is used: 





array(4) {
  string(4) "http"
  string(7) ""
  string(2) "me"
  string(9) "/page.php"

Should return:

array(5) {
  string(4) "http"
  string(7) ""
  string(10) ""
  string(4) "pass"
  string(9) "/page.php"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-10 05:13 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

Not a bug, it's an URL, and you need to encode characters in there. (for example with urlencode).

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 21 09:01:29 2024 UTC