zendframework/zf2 — pull request #2830 by AlloVince (2012-10-23 16:55:09+00:00)
Title: fixed http request if query contains full url

Fixed http request detect issue.

When url query contains any url, the requestUri part is not correct.

For example,

$_SERVER['REQUEST_URI'] = '/html/index.php?url=http://test.example.com/path/&foo=bar';
$request = new \Zend\Http\PhpEnvironment\Request();
echo $request->getRequestUri();

Output is:

/path/&foo=bar

Correct should be

/html/index.php?url=http://test.example.com/path/&foo=bar