bug #10799 [Debug] less intrusive work around for https://bugs.php.net/54275 (nicolas-grekas)

This PR was merged into the 2.5-dev branch.

Discussion
----------

[Debug] less intrusive work around for https://bugs.php.net/54275

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #10787, #10292
| License       | MIT
| Doc PR        | none

- This PR supersedes the behavior introduced in https://github.com/symfony/symfony/pull/10725 :
  Instead of building some complicated code to work around https://bugs.php.net/54275, the code is now as
  straightforward as possible, with a conditional fallback work around.
- The handling of fatal errors is also made more robust/fail-safe.
- Last but not least, ErrorsLoggerListener and FatalErrorExceptionsListener are now registered earlier and
  are now cleaning up their handler/logger once set to prevent setting again and again for sub-requests
  (+remove one refcount for these handler and logger).

Commits
-------

d7a186f [Debug] less intrusive work around for https://bugs.php.net/54275
bug #10801 [Debug] ErrorHandler: remove $GLOBALS from context in PHP5.3 fix #10292 (nicolas-grekas)

This PR was merged into the 2.3 branch.

Discussion
----------

[Debug] ErrorHandler: remove $GLOBALS from context in PHP5.3 fix #10292

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

Commits
-------

ed0ed80 [Debug] ErrorHandler: remove $GLOBALS from context in PHP5.3 fix #10292
Merge branch '2.3' into 2.4

* 2.3:
  [Debug] ErrorHandler: remove $GLOBALS from context in PHP5.3 fix #10292
  Allow File instance to be passed to BinaryFileResponse
  Add upgrade instructions for the LoggerInterface
  fixed CS
  Removed strict check when found variables inside a translation
Merge branch '2.4'

* 2.4:
  [Debug] ErrorHandler: remove $GLOBALS from context in PHP5.3 fix #10292
  Allow File instance to be passed to BinaryFileResponse
  Add upgrade instructions for the LoggerInterface
  fixed CS
  Removed strict check when found variables inside a translation
  [ExpressionLanguage] Test for the non-strict in_array check in parsePrimaryExpression in Parser.php
  Strict in_array check in Parser.php
  Updated Serbian latin validation translation

Conflicts:
	src/Symfony/Component/Debug/ErrorHandler.php
[Debug] fix ErrorHandlerTest when context is not an array
bug #10803 [Debug] fix ErrorHandlerTest when context is not an array (nicolas-grekas)

This PR was merged into the 2.3 branch.

Discussion
----------

[Debug] fix ErrorHandlerTest when context is not an array

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

Commits
-------

988a5dc [Debug] fix ErrorHandlerTest when context is not an array
Merge branch '2.3' into 2.4

* 2.3:
  [Debug] fix ErrorHandlerTest when context is not an array

Conflicts:
	src/Symfony/Component/Debug/Tests/ErrorHandlerTest.php
Merge branch '2.4'

* 2.4:
  [Debug] fix ErrorHandlerTest when context is not an array
updated CHANGELOG for 2.5.0-BETA2
updated VERSION for 2.5.0-BETA2
Fixed composer to include config component for mocks in phpunit
bumped Symfony version to 2.5.0
Use absolute URLs to assets on Symfony its internal pages.
[Debug] fix #10313: FlattenException not found because of https://bugs.php.net/42098
bug #10817 [Debug] fix #10313: FlattenException not found (nicolas-grekas)

This PR was merged into the 2.3 branch.

Discussion
----------

[Debug] fix #10313: FlattenException not found

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

Note that this patch should be ignored while merging into 2.5/master (it will conflict because 2.5/master has a much stronger workaround, not suitable for a minor release IMHO).

Commits
-------

b147cfa [Debug] fix #10313: FlattenException not found because of https://bugs.php.net/42098
Merge branch '2.3' into 2.4

* 2.3:
  [Debug] fix #10313: FlattenException not found because of https://bugs.php.net/42098
Merge branch '2.4'

* 2.4:
  [Debug] fix #10313: FlattenException not found because of https://bugs.php.net/42098
Revert "bug #10817 [Debug] fix #10313: FlattenException not found (nicolas-grekas)"

reverted in 2.5 as it does not make sense here.

This reverts commit c18bf19016cc96dcf1604c0a5c97b647c78cb63d, reversing
changes made to 585b61db95dd63f8d048648384f5243320a44847.
Fixed issue #5427
bug #10815 Fixed issue #5427 (umpirsky)

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

Discussion
----------

Fixed issue #5427

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #5427
| License       | MIT

Commits
-------

f308f52 Fixed issue #5427