Make rootPath part of regex greedy

- Fixes #10977
bug #10979 Make rootPath part of regex greedy (artursvonda)

This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #10979).

Discussion
----------

Make rootPath part of regex greedy

- Fixes #10977
- Also replaced `isset() && true` with simple `!empty()` which is equivalent.

Commits
-------

31da839 Make rootPath part of regex greedy
[HttpKernel] simplified some tests
Revert "[HttpKernel] simplified some tests"

This reverts commit ccacd8d2af428de1cf3df3e25757d4e4a20ab5e1.
Revert "bug #10979 Make rootPath part of regex greedy (artursvonda)"

This reverts commit 9766c72324e3a073bc76eeafd754479a7dd01d8b, reversing
changes made to 168174af08f213f6797fde47a570356c0e4919e0.
Revert "fixed CS"

This reverts commit 11816c5e518bf6e1aa25f457bd861394a6e4bf1d.
Revert "bug #10937 [HttpKernel] Fix "absolute path" when we look to the cache directory (BenoitLeveque)"

This reverts commit 7dc8931969cdf55820c40757a1da9906b9fb013d, reversing
changes made to 309046a2072efe83d2f3cf7da87d6b76d33429a4.
Revert "bug #10894 [HttpKernel] removed absolute paths from the generated container (fabpot)"

This reverts commit 735e9a4768962b6d5098733c347cff0df6b9cd36, reversing
changes made to 5c91dc1a3a49c6d5fdc05fea3962355badf8e9fd.
Merge branch '2.3' into 2.4

* 2.3:
  Revert "bug #10894 [HttpKernel] removed absolute paths from the generated container (fabpot)"
  Revert "bug #10937 [HttpKernel] Fix "absolute path" when we look to the cache directory (BenoitLeveque)"
  Revert "fixed CS"
  Revert "bug #10979 Make rootPath part of regex greedy (artursvonda)"
  Revert "[HttpKernel] simplified some tests"
  [HttpKernel] simplified some tests
  Make rootPath part of regex greedy

Conflicts:
	src/Symfony/Component/HttpKernel/Tests/KernelTest.php
Merge branch '2.4' into 2.5

* 2.4:
  Revert "bug #10894 [HttpKernel] removed absolute paths from the generated container (fabpot)"
  Revert "bug #10937 [HttpKernel] Fix "absolute path" when we look to the cache directory (BenoitLeveque)"
  Revert "fixed CS"
  Revert "bug #10979 Make rootPath part of regex greedy (artursvonda)"
  Revert "[HttpKernel] simplified some tests"
  [HttpKernel] simplified some tests
  Make rootPath part of regex greedy
Merge branch '2.5'

* 2.5:
  Revert "bug #10894 [HttpKernel] removed absolute paths from the generated container (fabpot)"
  Revert "bug #10937 [HttpKernel] Fix "absolute path" when we look to the cache directory (BenoitLeveque)"
  Revert "fixed CS"
  Revert "bug #10979 Make rootPath part of regex greedy (artursvonda)"
  Revert "[HttpKernel] simplified some tests"
  [HttpKernel] simplified some tests
  Make rootPath part of regex greedy