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

Bug #15980 PHP_CodeSniffer change php current directory
Submitted: 2009-03-05 11:11 UTC
From: dollyaswin Assigned: squiz
Status: Closed Package: PHP_CodeSniffer
PHP Version: 5.2.5 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


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 : 31 + 27 = ?

 
 [2009-03-05 11:11 UTC] dollyaswin (Dolly Aswin Harahap)
Description: ------------ chdir() function on PHP_CodeSniffer class cause change PHP current directory. It cause a litle problem when I used PHP_CodeSniffer with phing, that after execution PHP_CodeSniffer statement on build xml, phing cannot execution the next statement. Here, I attach the patch to fix this problem Thanks. Test script: --------------- Expected result: ---------------- Actual result: --------------

Comments

 [2009-03-09 08:21 UTC] squiz (Greg Sherwood)
-Assigned To: +Assigned To: squiz
 [2009-03-09 08:24 UTC] squiz (Greg Sherwood)
-Status: Assigned +Status: Closed
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. Thanks for the patch. I only made one small change - making the member var private.