Re: [DOC-BUGS] #49547 [NEW]: Errors in the phd --help text

Re: [DOC-BUGS] #49547 [NEW]: Errors in the phd --help text

am 14.09.2009 11:06:51 von Richard Quadling

2009/9/14 mike at silverorange dot com :
> From:             mike at silverorange dot =
com
> Operating system: Irrelevant
> PHP version:      5.3SVN-2009-09-13 (snap)
> PHP Bug Type:     Doc Build problem
> Bug description:  Errors in the phd --help text
>
> Description:
> ------------
> I installed PhD from svn today.
>
> phd --help has two issues I can see.
>
> 1. The --color option says it is off by default, but it was on by default
> for me.
>
> 2. In the sentence "Most options can be passed multiple times for greater
> affect.", the word "effect" should be used instead of "affect".
>
>
> --
> Edit bug report at http://bugs.php.net/?id=3D49547&edit=3D1
> --
> Try a snapshot (PHP 5.2):            http:/=
/bugs.php.net/fix.php?id=3D49547&r=3Dtrysnapshot52
> Try a snapshot (PHP 5.3):            http:/=
/bugs.php.net/fix.php?id=3D49547&r=3Dtrysnapshot53
> Try a snapshot (PHP 6.0):            http:/=
/bugs.php.net/fix.php?id=3D49547&r=3Dtrysnapshot60
> Fixed in SVN:                 =C2=
=A0      http://bugs.php.net/fix.php?id=3D49547&r=3Dfixed
> Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=3D495=
47&r=3Dneeddocs
> Fixed in release:                =
   http://bugs.php.net/fix.php?id=3D49547&r=3Dalreadyfixe d
> Need backtrace:                 =
     http://bugs.php.net/fix.php?id=3D49547&r=3Dneedtrace
> Need Reproduce Script:               h=
ttp://bugs.php.net/fix.php?id=3D49547&r=3Dneedscript
> Try newer version:               =C2=
=A0   http://bugs.php.net/fix.php?id=3D49547&r=3Doldversion
> Not developer issue:               =C2=
=A0 http://bugs.php.net/fix.php?id=3D49547&r=3Dsupport
> Expected behavior:               =C2=
=A0   http://bugs.php.net/fix.php?id=3D49547&r=3Dnotwrong
> Not enough info:                 =
    http://bugs.php.net/fix.php?id=3D49547&r=3Dnotenoughinfo
> Submitted twice:                 =
    http://bugs.php.net/fix.php?id=3D49547&r=3Dsubmittedtwice
> register_globals:                =
   http://bugs.php.net/fix.php?id=3D49547&r=3Dglobals
> PHP 4 support discontinued:          http://bugs=
..php.net/fix.php?id=3D49547&r=3Dphp4
> Daylight Savings:                =
   http://bugs.php.net/fix.php?id=3D49547&r=3Ddst
> IIS Stability:                 =
      http://bugs.php.net/fix.php?id=3D49547&r=3Disapi
> Install GNU Sed:                 =
    http://bugs.php.net/fix.php?id=3D49547&r=3Dgnused
> Floating point limitations:          http://bugs=
..php.net/fix.php?id=3D49547&r=3Dfloat
> No Zend Extensions:               =C2=
=A0  http://bugs.php.net/fix.php?id=3D49547&r=3Dnozend
> MySQL Configuration Error:           http://bugs=
..php.net/fix.php?id=3D49547&r=3Dmysqlcfg
>
>
> --
> PHP Documentation Bugs Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


In my testing, Windows XP, Windows 2003 and Windows 2008, by default,
have no support for coloured console output (along the lines of the
old-style ANSI.SYS for MS-DOS).

I use a program called ANSICON.EXE from Jason Hood (his site is
currently offline [1]). Full source is available when the site is up.

By use of a registry entry ...

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor]
"AutoRun"=3D"C:\\Utils\\ANSICon.exe -p"


ANSICon loads every time you load a %COMSPEC%.

Doesn't support the entire ANSI set (keyboard remapping isn't
present), but all the coloured outputs works fine (there is a nice
example file showing all the colour combinations with normal and
brights foreground and background).

Regards,

Richard Quadling.

P.S. I've contacted Jason about the site, I'll let you know when I get
a response.

[1] http://adoxa.110mb.com/ansicon/
--=20
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
Zend Certified Engineer : http://zend.com/zce.php?c=3DZEND002498&r=3D213474=
731
ZOPA : http://uk.zopa.com/member/RQuadling

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: [DOC-BUGS] #49547 [NEW]: Errors in the phd --help

am 14.09.2009 11:27:54 von Hannes Magnusson

On Mon, Sep 14, 2009 at 11:06, Richard Quadling
wrote:
> 2009/9/14 mike at silverorange dot com :
>> 1. The --color option says it is off by default, but it was on by default
>> for me.
>
>
> In my testing, Windows XP, Windows 2003 and Windows 2008, by default,
> have no support for coloured console output (along the lines of the
> old-style ANSI.SYS for MS-DOS).
>
> I use a program called ANSICON.EXE from Jason Hood (his site is
> currently offline [1]). Full source is available when the site is up.
>
> By use of a registry entry ...

I'm not comfortable editing the registry settings when installing PhD
(doubt its even possible using the PEAR installer).
If someone knows a simple way to enable colors on Windows I'm game for it.

His bugreport is however correct, colors are enabled by default on
*nix, I however forgot to update the help text (like he said) when I
changed the defaults :)

-Hannes

Re: Re: [DOC-BUGS] #49547 [NEW]: Errors in the phd --help

am 14.09.2009 13:22:17 von Richard Quadling

2009/9/14 Hannes Magnusson :
> On Mon, Sep 14, 2009 at 11:06, Richard Quadling
> wrote:
>> 2009/9/14 mike at silverorange dot com :
>>> 1. The --color option says it is off by default, but it was on by default
>>> for me.
>>
>>
>> In my testing, Windows XP, Windows 2003 and Windows 2008, by default,
>> have no support for coloured console output (along the lines of the
>> old-style ANSI.SYS for MS-DOS).
>>
>> I use a program called ANSICON.EXE from Jason Hood (his site is
>> currently offline [1]). Full source is available when the site is up.
>>
>> By use of a registry entry ...
>
> I'm not comfortable editing the registry settings when installing PhD
> (doubt its even possible using the PEAR installer).
> If someone knows a simple way to enable colors on Windows I'm game for it.
>
> His bugreport is however correct, colors are enabled by default on
> *nix, I however forgot to update the help text (like he said) when I
> changed the defaults :)
>
> -Hannes
>

You can load ANSICON.exe via several routes.

You don't have to edit the registry to load ANSICON, though the
AutoRun registry setting is a standard setting [1]. I'm doing so as
the key that is amended is one quick and easy way to get ANSICON
loaded automatically.

You can just run ANSICON manually and the shell will now support ANSI colours.

Editing the registry is possible using the REG command from the
Windows Resource ToolKit ...

REG ADD "HKLM\Software\Microsoft\Command Processor" /v AutoRun /t
REG_SZ /d "C:\Utils\ANSICon.exe -p"

And that can be exec()'d by PHP no problem, but it won't automatically
provide coloured output. That requires the ANSICon app.

So, maybe for Windows PhD should disable coloured output as standard.

Richard.


[1] http://technet.microsoft.com/en-us/library/cc779439(WS.10).a spx
--
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling