FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=16137&edit=1

ID: 16137
Updated by: gsherwood@squiz.net
Reported By: bate at php dot net
Summary: Undefined offset: 2 File.php line 531
-Status: Open
+Status: Feedback
Type: Bug
Package: PHP_CodeSniffer
Package Version: 1.2.0RC1
PHP Version: 5.2.9
-Assigned To:
+Assigned To: squiz
Roadmap Versions:
New Comment:

-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: squiz




Previous Comments:
------------------------------------------------------------------------

[2009-04-22 12:43:15] squiz

Can you please provide the code you were testing. Any sort of error
from phpcs means it is not checking your specific code correctly, which
is why I don't silence any of these errors.

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

[2009-04-22 11:40:14] bate

Description:
------------
Error with non existing offset in an array. check first and after
explode

Test script:
---------------
PHP Notice: Undefined offset: 2 in
/var/www/Tools/PHP/CodeSniffer/File.php on line 531
PHP Stack trace:
PHP 1. {main}() /var/www/Tools/phpcs:0
PHP 2. PHP_CodeSniffer_CLI->process() /var/www/Tools/phpcs:30
PHP 3. PHP_CodeSniffer->process()
/var/www/Tools/PHP/CodeSniffer/CLI.php:389
PHP 4. PHP_CodeSniffer->processFiles()
/var/www/Tools/PHP/CodeSniffer.php:333
PHP 5. PHP_CodeSniffer_File->addError()
/var/www/Tools/PHP/CodeSniffer.php:655

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

Search Discussions

  • Gsherwood at May 19, 2009 at 1:51 am
    Edit report at http://pear.php.net/bugs/bug.php?id=16137&edit=1

    ID: 16137
    Updated by: gsherwood@squiz.net
    Reported By: bate at php dot net
    Summary: Undefined offset: 2 File.php line 531
    -Status: Feedback
    +Status: No Feedback
    Type: Bug
    Package: PHP_CodeSniffer
    Package Version: 1.2.0RC1
    PHP Version: 5.2.9
    Assigned To: squiz
    Roadmap Versions:
    New Comment:

    -Status: Feedback
    +Status: No Feedback

    If you can provide the code, please re-open the report.


    Previous Comments:
    ------------------------------------------------------------------------

    [2009-05-05 08:10:32] squiz

    -Status: Open
    +Status: Feedback
    -Assigned To:
    +Assigned To: squiz


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

    [2009-04-22 12:43:15] squiz

    Can you please provide the code you were testing. Any sort of error
    from phpcs means it is not checking your specific code correctly, which
    is why I don't silence any of these errors.

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

    [2009-04-22 11:40:14] bate

    Description:
    ------------
    Error with non existing offset in an array. check first and after
    explode

    Test script:
    ---------------
    PHP Notice: Undefined offset: 2 in
    /var/www/Tools/PHP/CodeSniffer/File.php on line 531
    PHP Stack trace:
    PHP 1. {main}() /var/www/Tools/phpcs:0
    PHP 2. PHP_CodeSniffer_CLI->process() /var/www/Tools/phpcs:30
    PHP 3. PHP_CodeSniffer->process()
    /var/www/Tools/PHP/CodeSniffer/CLI.php:389
    PHP 4. PHP_CodeSniffer->processFiles()
    /var/www/Tools/PHP/CodeSniffer.php:333
    PHP 5. PHP_CodeSniffer_File->addError()
    /var/www/Tools/PHP/CodeSniffer.php:655

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMay 5, '09 at 6:11a
activeMay 19, '09 at 1:51a
posts2
users1
websitepear.php.net

1 user in discussion

Gsherwood: 2 posts

People

Translate

site design / logo © 2022 Grokbase