Re: svn: /phd/trunk/ package.xml phpdotnet/phd/BuildOptionsParser.php phpdotnet/phd/Config.php phpdotnet/phd/functions.php
| From: | Richard Quadling | Date: | Thu, 08 Apr 2010 08:27:06 +0000 |
| Subject: | Re: svn: /phd/trunk/ package.xml phpdotnet/phd/BuildOptionsParser.php phpdotnet/phd/Config.php phpdotnet/phd/functions.php | ||
| References: | 1 2 | Groups: | php.doc.cvs |
| Request: | Send a blank email to doc-cvs+get-6339@lists.php.net to get a copy of this message | ||
On 8 April 2010 03:17, Moacir de Oliveira
<moacirdeoliveira.eng@gmail.com> wrote:
> 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
>
/**
* Maps static function calls to config option setter/getters.
*
* To set an option, call "Config::setOptionname($value)".
* To retrieve an option, call "Config::optionname()".
*
* It is also possible, but deprecated, to call
* "Config::set_optionname($value)".
*
* @param string $name Name of called function
* @param array $params Array of function parameters
*
* @return mixed Config value that was requested or set.
*/
I was just obeying the comments.
--
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling