gianebao
gianebao

Reputation: 18908

php codesniffer + xampp: Missing PEAR/Exception.php

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

Upvotes: 1

Views: 1935

Answers (1)

gianebao
gianebao

Reputation: 18908

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.

Upvotes: 2

Related Questions