From: greg at freephile dot com
Operating system: RH Linux 8.0
PHP version: 4.3.3
PHP Bug Type: HTTP related
Bug description: _SERVER['REQUEST_URI'] does not capture fragment

When a URI includes a fragment, that fragment is not captured as part of
the $_SERVER['REQUEST_URI'] variable, so it is not possible to use
p_url() to get the fragment. As an example, the following request
will NOT have the fragment in the $_SERVER['REQUEST_URI'] variable:

Instead, the $_SERVER['REQUEST_URI'] is given as

I use PHP to process outgoing site links on [url][/url], but
due to this problem, I cannot redirect to external URIs containing a
fragment. The workaround is to recode those URIs into two querystring
variables and then reconstruct the URI:

$externalSiteURI = $_REQUEST['to'] . $_REQUEST['fragment'];

Reproduce code:

(this link may be fixed with a workaround by the time you get this

Expected result:
$_SERVER['REQUEST_URI'] = '/admin/test.php?foo=bar#fragment'

Actual result:
$_SERVER['REQUEST_URI'] = '/admin/test.php?foo=bar'

Edit bug report at [url][/url]
Try a CVS snapshot (php4): [url][/url]
Try a CVS snapshot (php5): [url][/url]
Fixed in CVS: [url][/url]
Fixed in release: [url][/url]
Need backtrace: [url][/url]
Try newer version: [url][/url]
Not developer issue: [url][/url]
Expected behavior: [url][/url]
Not enough info: [url][/url]
Submitted twice: [url][/url]
register_globals: [url][/url]
PHP 3 support discontinued: [url][/url]
Daylight Savings: [url][/url]
IIS Stability: [url][/url]
Install GNU Sed: [url][/url]
Floating point limitations: [url][/url]