How to install php extension php_posix on windows?

I try to play with symfony in windows, and when I run the script validation configuration, I get the following error:

[[WARNING]] The posix_isatty() is available: FAILED *** Install and enable the php_posix extension (used to colorized the CLI output) *** 

How can I install php_posix on windows or cannot it be installed on windows?

+8
php
source share
2 answers

The POSIX extension cannot be installed on Windows, as indicated at http://ca3.php.net/manual/en/intro.posix.php .

Note: This extension is not available on Windows platforms.

Windows shell does not support color. If you want to play with the Symfony MVC Framework on Windows, you may need to use Cygwin or WAMP (or something similar).

+13
source share

To support color output on Windows, you have two options: ansicon and cygwin. However, Symfony2 will only automatically color if ANSICON env is a variable. In cygwin you need to set the variable to ~ / .bash_rc.

Bonus: Also download puTTYCyg for cygwin.

+5
source share

All Articles