Skip to content

Instantly share code, notes, and snippets.

@mathiasverraes
Created January 19, 2015 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mathiasverraes/53c94b23024dac14341a to your computer and use it in GitHub Desktop.
Save mathiasverraes/53c94b23024dac14341a to your computer and use it in GitHub Desktop.
Bug in Zend HTTP?
<?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
@mathiasverraes
Copy link
Author

"zendframework/zend-http": "~2.3.4"

@mathiasverraes
Copy link
Author

Same behaviour with "GET /?foo=bar HTTP/1.1\r\n\r\n" instead of heredoc.

@mathiasverraes
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment