The function drupal_environment_initialize calls request_path but does not give any way to force the path variable to be reset. The proposed changes are:
add $opt to:
function drupal_environment_initialize($opt=0) {
change call to request path to add opt:
$_GET['q'] = request_path($opt);
and then change request path:
function request_path($opt=0) {
if (isset($path) && ! $opt) {
return $path;
}
The only people who would want this change would be anyone looking for the highest possible performance by running drupal inside an object storage system.