#25571 [NEW]: parse_url behavior
| From: | andreas dot lange at haas-media dot de | Date: | Wed, 17 Sep 2003 10:57:07 +0000 |
| Subject: | #25571 [NEW]: parse_url behavior | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-47693@lists.php.net to get a copy of this message | ||
From: andreas dot lange at haas-media dot de
Operating system: Linux Redhat 7.3
PHP version: 4.3.3
PHP Bug Type: Feature/Change Request
Bug description: parse_url behavior
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
--
Edit bug report at http://bugs.php.net/?id=25571&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25571&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25571&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25571&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25571&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25571&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25571&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25571&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25571&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25571&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25571&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25571&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25571&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25571&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25571&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25571&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25571&r=float