#34148 [Opn->Asn]: parse_url() broken

From: Date: Tue, 16 Aug 2005 08:59:34 +0000
Subject: #34148 [Opn->Asn]: parse_url() broken
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-83634@lists.php.net to get a copy of this message
 ID:               34148
 Updated by:       johannes@php.net
 Reported By:      php at benjamin dot schulz dot name
-Status:           Open
+Status:           Assigned
 Bug Type:         URL related
 Operating System: linux
 PHP Version:      5.1.0b3
-Assigned To:      
+Assigned To:      ilia
 New Comment:

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? 


Previous Comments:
------------------------------------------------------------------------

[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


Thread (5 messages)

« previous php.bugs (#83634) next »