It relies on the environment variables and they can be a mess. I have had problems with installing php under "program files" and I think the space has been the problem.
So I would advice to do the following:
Uninstall php, including pear and code sniffer.
Delete all environment variable that include the old php path (not only the path variable, bat also the pear specific variables)
If uninstalling php is not an option, make sure that all variables are correct!
Reboot Windows since changing environment variables often do not work as expected before the system is restarted.
a) Go to http://windows.php.net/download and download php 5.6 Non Thread Safe x64
b) Unzip it to c:\php
c) Install PEAR by downloading http://pear.php.net/go-pear.phar and running php go-phear.phar
d) Install CodeSniffer: pear install PHP_CodeSniffer
e) Try phpcs.bat --standard=PSR2 -n yourfile.php
If that is successful, add the Vanilla directory from the repository to the CodeSniffers standards and rename Vanilla/Tests to Vanilla/Sniffs
I really have no clue what I was saying last year...
Comments
It relies on the environment variables and they can be a mess. I have had problems with installing php under "program files" and I think the space has been the problem.
So I would advice to do the following:
Uninstall php, including pear and code sniffer.
Delete all environment variable that include the old php path (not only the path variable, bat also the pear specific variables)
If uninstalling php is not an option, make sure that all variables are correct!
Reboot Windows since changing environment variables often do not work as expected before the system is restarted.
a) Go to http://windows.php.net/download and download php 5.6 Non Thread Safe x64
b) Unzip it to c:\php
c) Install PEAR by downloading http://pear.php.net/go-pear.phar and running
php go-phear.phar
d) Install CodeSniffer: pear install PHP_CodeSniffer
e) Try phpcs.bat --standard=PSR2 -n yourfile.php
If that is successful, add the Vanilla directory from the repository to the CodeSniffers standards and rename Vanilla/Tests to Vanilla/Sniffs
I really have no clue what I was saying last year...