Avoid notice from being *eaten* by fatal error.
[Debug] fixed unit tests
bug #9641 [Debug] Avoid notice from being "eaten" by fatal error. (fabpot)

This PR was merged into the 2.3 branch.

Discussion
----------

[Debug] Avoid notice from being "eaten" by fatal error.

Workaround for https://bugs.php.net/bug.php?id=54275. Follow-up to PR #9428 and #9449.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #8703
| License       | MIT
| Doc PR        | n/a

Commits
-------

872d584 [Debug] fixed unit tests
2d6c2aa Avoid notice from being *eaten* by fatal error.