Bug #15980 [Asn->Csd]: PHP_CodeSniffer change php current directory
| From: | gsherwood at squiz dot net | Date: | Mon, 09 Mar 2009 04:24:39 +0000 |
| Subject: | Bug #15980 [Asn->Csd]: PHP_CodeSniffer change php current directory | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-122@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=15980&edit=1
ID: 15980
Updated by: gsherwood@squiz.net
Reported By: dolly dot aswin at gmail dot com
Summary: PHP_CodeSniffer change php current directory
-Status: Assigned
+Status: Closed
Type: Bug
Package: PHP_CodeSniffer
Operating System: Linux
PHP Version: 5.2.5
Assigned To: squiz
Roadmap Versions:
New Comment:
-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.
Previous Comments:
------------------------------------------------------------------------
[2009-03-09 04:21:26] squiz
-Assigned To:
+Assigned To: squiz
------------------------------------------------------------------------
[2009-03-05 06:11:46] dollyaswin
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:
--------------
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=15980&edit=1