|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31705 parse_url: not recognized
Submitted: 2005-01-26 18:26 UTC Modified: 2005-01-27 17:38 UTC
From: cox at idecnet dot com Assigned:
Status: Closed Package: URL related
PHP Version: 4.3.10 OS: Linux
Private report: No CVE-ID: None
 [2005-01-26 18:26 UTC] cox at idecnet dot com
This url format is not recognized by parse_url():

Most browsers do recognize this format. Others like "" are rightly parsed.

Tomas V.V.Cox

Reproduce code:
php -r 'print_r(parse_url(""));'

Expected result:
    [scheme] => http
    [host] =>
    [fragment] => bar

Actual result:
    [scheme] => http
    [host] =>


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-27 17:38 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Dec 01 23:01:26 2023 UTC