FAQ
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:
--------------

------------------------------------------------------------------------

Search Discussions

  • Gsherwood at Mar 9, 2009 at 4:24 am
    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:
    --------------

    ------------------------------------------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMar 9, '09 at 4:21a
activeMar 9, '09 at 4:24a
posts2
users1
websitepear.php.net

1 user in discussion

Gsherwood: 2 posts

People

Translate

site design / logo © 2022 Grokbase