Re: svn: /phd/trunk/ package.xml phpdotnet/phd/BuildOptionsParser.php phpdotnet/phd/Config.php phpdotnet/phd/functions.php

From: Date: Thu, 08 Apr 2010 02:17:52 +0000
Subject: Re: svn: /phd/trunk/ package.xml phpdotnet/phd/BuildOptionsParser.php phpdotnet/phd/Config.php phpdotnet/phd/functions.php
References: 1  Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-6336@lists.php.net to get a copy of this message
hi, 2010/4/7 Richard Quadling <rquadling@php.net> > rquadling Wed, 07 Apr 2010 11:50:19 +0000 > > Revision: > http://svn.php.net/viewvc?view=revision&revision=297613 > > Log: > Re-enable coloured output on Windows, but not by default. > + public static function setColor_output($color_output) > + { > + // Disable colored output if the terminal doesn't support colours > + if ($color_output && function_exists('posix_isatty')) { > + if (!posix_isatty(Config::phd_info_output())) { > + Config::set_phd_info_color(false); > + } > + if (!posix_isatty(Config::phd_warning_output())) { > + Config::set_phd_info_color(false); > + } > + if (!posix_isatty(Config::php_error_output())) { > + Config::set_phd_info_color(false); > + } > + if (!posix_isatty(Config::user_error_output())) { > + Config::set_phd_info_color(false); > + } > + } > + self::$optionArray['color_output'] = $color_output; > + } > + > + public static function set_color_output($color_output) > + { > + trigger_error('Use setColor_output()', E_USER_DEPRECATED); > + } > } > why don't just use set_color_output? --Moacir de Oliveira

« previous php.doc.cvs (#6336) next »