Development

Changeset 2990

You must first sign up to be able to contribute.

Changeset 2990

Show
Ignore:
Timestamp:
12/09/06 12:10:59 (2 years ago)
Author:
fabien
Message:

pake: fastest Windows Detection

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tools/pake/trunk/lib/pake/pakeColor.class.php

    r2382 r2990  
    3333  { 
    3434    // disable colors if not supported (windows or non tty console) 
    35     if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN' || !function_exists('posix_isatty') || !@posix_isatty($stream)) 
     35    if (DIRECTORY_SEPARATOR == '\\' || !function_exists('posix_isatty') || !@posix_isatty($stream)) 
    3636    { 
    3737      return $text;