After running go-pear.bat to
configure PEAR on a Windows Server you may encounter the PHP error dialog "Invalid configuration directive". To correct the issue, modify the file
C:\Program Files (x86)\PHP\pear.bat. Scroll down to the
:RUN section and modify the line with the PHP directive "-d include_path":
Prepend "
.;" before "
%PHP_PEAR_INSTALL_DIR%", and do not include the quotes. The section of line will read:
"... -d include_path=".;%PHP_PEAR_INSTALL_DIR%" -f "%PHP_PEA..."
Save the file and re-run the "pear" command.
Reference: http://kb.rackforce.com/?View=entry&EntryID=97
I've did this command and error has disappear when I run pear command. But when I am trying to run PHP_CodeSniffer (phpcs) error appears again.
ReplyDelete