我遇到了一個問題,試圖讓codesniffer與Xampp(1.7.1)一起工作。我通過在php.ini中編輯include_path來運行pear。在Windows 7上使用Codesniffer和Xampp
當我嘗試運行phpcs我得到以下錯誤:
Warning: include_once(PHP/CodeSniffer/CLI.php): failed to open stream: No such file or directory in C:\xampp\php\phpcs on Line 31
Warning: include_once(): Failed opening 'PHP/Codesniffer/CLI.php' for inclusion (include_path="\xampp\php\pear") in C:\xampp\php\phpcs on line 31
Fatal error: Class 'PHP_CodeSniffer_CLI' not found in C:\xampp\php\phpcs on line 34
任何人有任何想法是怎麼回事?