Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-10768

Only use colors in tests if output device is a terminal

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.0.10
    • Fix Version/s: 3.0.14-RC1
    • Component/s: None
    • Labels:

      Description

      http://php.net/manual/en/function.posix-isatty.php

      On windows I don't expect isatty to exist, and there color should always be off.

      On unix posix extension may not be installed. We can either require posix to be installed for color or add a knob to force color.

        Attachments

          Activity

            People

            Assignee:
            nickvergessen Joas Schilling [X] (Inactive)
            Reporter:
            Oleg Oleg [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: