Created
January 19, 2015 13:15
-
-
Save mathiasverraes/53c94b23024dac14341a to your computer and use it in GitHub Desktop.
Bug in Zend HTTP?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$request = \Zend\Http\Request::fromString( | |
<<<REQ | |
GET /?foo=bar HTTP/1.1\r\n\r\n | |
REQ | |
); | |
var_dump($request->getQuery()->get('foo')); | |
// Expected "bar", got null |
Same behaviour with "GET /?foo=bar HTTP/1.1\r\n\r\n"
instead of heredoc.
Made a PR zendframework/zendframework#7137
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
"zendframework/zend-http": "~2.3.4"