Bug #15980 [Opn]: PHP_CodeSniffer change php current directory
| From: | gsherwood at squiz dot net | Date: | Mon, 09 Mar 2009 04:21:26 +0000 |
| Subject: | Bug #15980 [Opn]: PHP_CodeSniffer change php current directory | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-121@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: Open
Type: Bug
Package: PHP_CodeSniffer
Operating System: Linux
PHP Version: 5.2.5
-Assigned To:
+Assigned To: squiz
Roadmap Versions:
New Comment:
-Assigned To:
+Assigned To: squiz
Previous Comments:
------------------------------------------------------------------------
[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