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

Community
  • 1
  • 1
gianebao
  • 17,718
  • 3
  • 31
  • 40
  • Do you have pear installed ? and what does it said when you do `var_dump(PEAR);` ? – ajreal Dec 30 '10 at 04: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? – gianebao Dec 30 '10 at 06:42

1 Answers1

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.

gianebao
  • 17,718
  • 3
  • 31
  • 40