Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 3.7.2

Bug #12767 Cant run phpcs from dir with PEAR subdir
Submitted: 2007-12-24 04:01 UTC
From: squiz Assigned: squiz
Status: Closed Package: PHP_CodeSniffer (version 1.0.0)
PHP Version: Irrelevant OS: Windows
Roadmaps: 1.0.1    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 23 - 9 = ?

 
 [2007-12-24 04:01 UTC] squiz (Greg Sherwood)
Description: ------------ If you run PHPCS from a directory that contains a subdir called "PEAR" (such as the bin dir) then PHPCS will use that directory as its coding standard as the is_dir() check for a custom standard is relative.

Comments

 [2007-12-24 04:02 UTC] squiz (Greg Sherwood)
The workarounds for this problem as to: - run phpcs from a directory without a PEAR subdir - specify the full path to the PEAR standard on the command line Note that this problem (and workarounds) affect all included standards. Just sub PEAR with the standard name for the workarounds.
 [2007-12-24 04:02 UTC] squiz (Greg Sherwood)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.