Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 745300b

Browse filesBrowse files
author
Robin Chalas
committed
bug #26211 [Console] Suppress warning from sapi_windows_vt100_support (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
2 parents 233774c + 43f9421 commit 745300b
Copy full SHA for 745300b

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/Console/Output/StreamOutput.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Output/StreamOutput.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ protected function hasColorSupport()
9090
{
9191
if (DIRECTORY_SEPARATOR === '\\') {
9292
return
93-
function_exists('sapi_windows_vt100_support') && sapi_windows_vt100_support($this->stream)
93+
function_exists('sapi_windows_vt100_support') && @sapi_windows_vt100_support($this->stream)
9494
|| '10.0.10586' === PHP_WINDOWS_VERSION_MAJOR.'.'.PHP_WINDOWS_VERSION_MINOR.'.'.PHP_WINDOWS_VERSION_BUILD
9595
|| false !== getenv('ANSICON')
9696
|| 'ON' === getenv('ConEmuANSI')

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.