php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #25571 parse_url behavior
Submitted: 2003-09-17 06:57 UTC Modified: 2005-06-29 12:49 UTC
Votes:2
Avg. Score:3.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: andreas dot lange at haas-media dot de Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.3.3 OS: Linux Redhat 7.3
Private report: No CVE-ID: None
 [2003-09-17 06:57 UTC] andreas dot lange at haas-media dot de
Description:
------------
A simple change:

The detection of the scheme uses ':' for the splitting. Better splitting ist '://'.

with best regards

Andreas Lange

Reproduce code:
---------------
<?php
$url = '/test::board/test.php?x=1';
$p = parse_url($url);
echo '<pre>';
print_r($p);
echo '</pre>';
?>


Expected result:
----------------
[path] => /test::board/test.php
[query] => x=1


Actual result:
--------------
[scheme] => /test
[path] => :board/test.php
[query] => x=1



Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-29 12:49 UTC] nlopess@php.net
at least HEAD works fine.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Aug 19 16:01:27 2024 UTC