This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/HttpFoundation/Tests
Fabien Potencier e8653b9964 bug #21968 Fixed pathinfo calculation for requests starting with a question mark. (syzygymsu)
This PR was squashed before being merged into the 2.7 branch (closes #21968).

Discussion
----------

Fixed pathinfo calculation for requests starting with a question mark.

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #21967
| License       | MIT
| Doc PR        |

With  improper `strpos` result check calculated pathinfo for requests starting with '?' equals to request itself.
Correct pathinfo for those requests should be '/'.

Commits
-------

43297b45de Fixed pathinfo calculation for requests starting with a question mark.
2017-03-22 13:27:23 -07:00
..
File Further refactorings to PHPUnit namespaces 2017-02-21 09:32:25 +01:00
Session Further refactorings to PHPUnit namespaces 2017-02-21 09:32:25 +01:00
AcceptHeaderItemTest.php Update to PHPUnit namespaces 2017-02-18 08:02:39 -08:00
AcceptHeaderTest.php Update to PHPUnit namespaces 2017-02-18 08:02:39 -08:00
ApacheRequestTest.php Update to PHPUnit namespaces 2017-02-18 08:02:39 -08:00
BinaryFileResponseTest.php Merge branch '2.3' into 2.7 2016-03-10 20:23:56 +01:00
CookieTest.php Update to PHPUnit namespaces 2017-02-18 08:02:39 -08:00
ExpressionRequestMatcherTest.php Update to PHPUnit namespaces 2017-02-18 08:02:39 -08:00
FileBagTest.php Update to PHPUnit namespaces 2017-02-18 08:02:39 -08:00
HeaderBagTest.php Update to PHPUnit namespaces 2017-02-18 08:02:39 -08:00
IpUtilsTest.php Update to PHPUnit namespaces 2017-02-18 08:02:39 -08:00
JsonResponseTest.php Update to PHPUnit namespaces 2017-02-18 08:02:39 -08:00
ParameterBagTest.php Update to PHPUnit namespaces 2017-02-18 08:02:39 -08:00
RedirectResponseTest.php Update to PHPUnit namespaces 2017-02-18 08:02:39 -08:00
RequestMatcherTest.php Update to PHPUnit namespaces 2017-02-18 08:02:39 -08:00
RequestStackTest.php Update to PHPUnit namespaces 2017-02-18 08:02:39 -08:00
RequestTest.php bug #21968 Fixed pathinfo calculation for requests starting with a question mark. (syzygymsu) 2017-03-22 13:27:23 -07:00
ResponseHeaderBagTest.php Update to PHPUnit namespaces 2017-02-18 08:02:39 -08:00
ResponseTest.php fixed obsolete getMock() usage 2016-12-19 16:22:46 +01:00
ResponseTestCase.php Update to PHPUnit namespaces 2017-02-18 08:02:39 -08:00
ServerBagTest.php Update to PHPUnit namespaces 2017-02-18 08:02:39 -08:00
StreamedResponseTest.php Update to PHPUnit namespaces 2017-02-18 08:02:39 -08:00