1

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

2
  • Do you have pear installed ? and what does it said when you do var_dump(PEAR); ? Commented Dec 30, 2010 at 4:36
  • i think not. this returns string(4). BTW, i've installed pear via go-pear and i can see the package manager. it seems that its not integrated to php? Commented Dec 30, 2010 at 6:42

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.