#34148 [Bgs->Csd]: parse_url() broken
| From: | iliaa@php.net | Date: | Tue, 16 Aug 2005 14:20:52 +0000 |
| Subject: | #34148 [Bgs->Csd]: parse_url() broken | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-83650@lists.php.net to get a copy of this message | ||
ID: 34148
Updated by: iliaa@php.net
Reported By: php at benjamin dot schulz dot name
-Status: Bogus
+Status: Closed
Bug Type: URL related
Operating System: linux
PHP Version: 5.1.0b3
Assigned To: ilia
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2005-08-16 15:25:48] iliaa@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
The given URL is clearly invalid, the scheme cannot contain + in it.
------------------------------------------------------------------------
[2005-08-16 10:59:33] 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 10:55:45] php at benjamin dot schulz dot name
wrong summary
------------------------------------------------------------------------
[2005-08-16 10:52:03] 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"
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34148&edit=1