[Console] Fix #10795: Allow instancing Console Application when STDIN is not declared
bug #10798 [Console] Fix #10795: Allow instancing Console Application when STDIN is not declared (romainneutron)

This PR was merged into the 2.5-dev branch.

Discussion
----------

[Console] Fix #10795: Allow instancing Console Application when STDIN is not declared

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

Commits
-------

3a5a525 [Console] Fix #10795: Allow instancing Console Application when STDIN is not declared
[Debug] less intrusive work around for https://bugs.php.net/54275
[Debug] fix #10292