Hello guys,

I hate having to type --color all the time so I made a little change
to make sure the CLI always colorizes the output for me.

  protected function isStreamSupportsColors($stream)
  {
        if (PHP_OS == 'Darwin')
        {
                return true;
        }

    if (DIRECTORY_SEPARATOR == '\\')
    {
      return false !== getenv('ANSICON');
    }
    else
    {
      return function_exists('posix_isatty') &&
@posix_isatty($stream);
    }
  }

It doesn't say in the PHP documentation when PHP_OS was first made
available and I'm using 5.3.2 on Snow Leopard. I don't have posix
extensions installed.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to