php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34148 parse_url() broken
Submitted: 2005-08-16 10:52 UTC Modified: 2005-08-16 16:20 UTC
From: php at benjamin dot schulz dot name Assigned: ilia (profile)
Status: Closed Package: URL related
PHP Version: 5.1.0b3 OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php at benjamin dot schulz dot name
New email:
PHP Version: OS:

 

 [2005-08-16 10:52 UTC] php at benjamin dot schulz dot name
Description:
------------
parse_url doesn't support "special" characters like + or . in the scheme name anymore

Reproduce code:
---------------
<?php
// works
var_dump(parse_url("foobar://baz@bang/bla"))
// doesn't work at all
var_dump(parse_url("foo+bar://baz@bang/bla"));'
?>

Expected result:
----------------
array(4) {
  ["scheme"]=>
  string(6) "foo+bar"
  ["host"]=>
  string(4) "bang"
  ["user"]=>
  string(3) "baz"
  ["path"]=>
  string(4) "/bla"
}


Actual result:
--------------
array(2) {
  ["host"]=>
  string(7) "foo+bar"
  ["path"]=>
  string(14) "//baz@bang/bla"
}


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-16 10:59 UTC] johannes@php.net
This commit 
http://cvs.php.net/diff.php/php-src/ext/standard/url.c?r1=1.85&r2=1.84&ty=u 
broke it, can you look into it, ilia? 
 [2005-08-16 16:20 UTC] iliaa@php.net
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
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 12:01:29 2024 UTC