Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

ghost
Copy link

@ghost ghost commented Feb 17, 2018

Q A
Branch? 2.7
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #26210
License MIT

Suppresses warning from sapi_windows_vt100_support() for non-STDIO streams, e. g. php://memory.

@@ -450,7 +450,7 @@ protected function supportsColors()

if ('\\' === DIRECTORY_SEPARATOR) {
static::$defaultColors = @(
function_exists('sapi_windows_vt100_support') && sapi_windows_vt100_support($this->outputStream)
function_exists('sapi_windows_vt100_support') && @sapi_windows_vt100_support($this->outputStream)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

already muted L452?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't notice, I'll fix it.

@chalasr
Copy link
Member

chalasr commented Feb 18, 2018

Thanks for fixing this bug and congratz for your first contribution to Symfony @adawolfa.

@chalasr chalasr merged commit 43f9421 into symfony:2.7 Feb 18, 2018
chalasr pushed a commit that referenced this pull request Feb 18, 2018
… (adawolfa)

This PR was merged into the 2.7 branch.

Discussion
----------

[Console] Suppress warning from sapi_windows_vt100_support

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

Suppresses warning from `sapi_windows_vt100_support()` for non-STDIO streams, e. g. `php://memory`.

Commits
-------

43f9421 Suppress warning from sapi_windows_vt100_support on stream other than STDIO
@ghost ghost deleted the sapi_windows_vt100_support-warning-suppress branch February 18, 2018 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants