Development

Changeset 2042

You must first sign up to be able to contribute.

Changeset 2042

Show
Ignore:
Timestamp:
09/11/06 18:13:40 (2 years ago)
Author:
fabien
Message:

fixed a problem with pakeColor when php has no posix functions

Files:

Legend:

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

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