سؤال

I followed exactly what's in: How to use PHP_CodeSniffer with XAMPP? (no more no less)

But i encounter this error:

Warning: require_once(PEAR/Exception.php): failed to open stream: No such file or directory in C:\path\to\htdocs\php-codesniffer\CodeSniffer\Exception.php on line 17

هل كانت مفيدة؟

المحلول

Found out what's wrong. PEAR is not initially enabled in xampp.

include_path = ".;C:\Documents\xampp\php\PEAR"

Also consider this if your changing the include_path value in your php scripts via ini_set.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top