Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bef committed Aug 26, 2020
1 parent 7566d6e commit 3ed0877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpconfigcheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -1364,7 +1364,7 @@ function test_xdebug()

/*****************************************************************************/

if (function_exists('posix_isatty') && posix_isatty(STDOUT)) {
if (function_exists('posix_isatty') && defined('STDOUT') && posix_isatty(STDOUT)) {
function colorize_result($result){
if (($color = constant("ANSI_COLOR_" . $result)) !== NULL) {
return "\033[${color}m$result\033[0m";
Expand Down

0 comments on commit 3ed0877

Please sign in to comment.