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

  ID: 20499
  Updated by: [email protected]
  Reported By: [email protected]
  Summary: PHP Error Log file
  Status: Feedback
  Type: Bug
  Package: PHP_CodeSniffer
  Operating System: Mac OSX Yosemite
  Package Version: 2.2.0
  PHP Version: 5.6.2
  Assigned To: squiz
  Roadmap Versions:
  New Comment:

the thing is this: I use CodeSniffer on Sublime Text 2 with the PSR-2
standard running. But even if I
close SublimeText 2 and stop Apache running from MAMP, these errors
still pop up so I'm not sure on
which file this error is being triggered


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

[2015-02-04 22:44:52] squiz

-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: squiz
The only way for me to diagnose the issue is for you to provide some
sample code that causes the
problem, or point me at a project that I can run PHPCS over to find the
problem. Is there any chance
you can do that?

I'd also need to know what standard you are running.

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

[2015-02-04 22:32:31] hex4

Description:
------------
My php_error.log file is getting filled up with hundreds of the
following
warnings per second (in few minutes the file is up to 1GB)

[04-Feb-2015 22:04:30 Europe/Berlin] PHP Notice: Undefined index: in
/Applications/MAMP/bin/php/php5.6.2/lib/php/PHP/CodeSniffer/File.php on

line 3413
[04-Feb-2015 22:04:30 Europe/Berlin] PHP Notice: Undefined index: in
/Applications/MAMP/bin/php/php5.6.2/lib/php/PHP/CodeSniffer/File.php on

line 3425

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

Search Discussions

  • Gsherwood at Feb 5, 2015 at 8:25 am
    Edit report at https://pear.php.net/bugs/bug.php?id=20499&edit=1

      ID: 20499
      Updated by: [email protected]
      Reported By: [email protected]
      Summary: PHP Error Log file
      Status: Feedback
      Type: Bug
      Package: PHP_CodeSniffer
      Operating System: Mac OSX Yosemite
      Package Version: 2.2.0
      PHP Version: 5.6.2
      Assigned To: squiz
      Roadmap Versions:
      New Comment:

    Can you just run PHPCS over your codebase and see where the notices
    appear?

    Something like: phpcs --standard=PSR2 -v /path/to/code

    That will output each file as it is being checked. If you see a PHP
    notice, it will be from the file that
    PHPCS is currently running over. Running PHPCS over that file alone
    should produce the same result.


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

    [2015-02-05 08:19:07] hex4

    the thing is this: I use CodeSniffer on Sublime Text 2 with the PSR-2
    standard running. But even if I
    close SublimeText 2 and stop Apache running from MAMP, these errors
    still pop up so I'm not sure on
    which file this error is being triggered

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

    [2015-02-04 22:44:52] squiz

    -Status: Open
    +Status: Feedback
    -Assigned To:
    +Assigned To: squiz
    The only way for me to diagnose the issue is for you to provide some
    sample code that causes the
    problem, or point me at a project that I can run PHPCS over to find the
    problem. Is there any chance
    you can do that?

    I'd also need to know what standard you are running.

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

    [2015-02-04 22:32:31] hex4

    Description:
    ------------
    My php_error.log file is getting filled up with hundreds of the
    following
    warnings per second (in few minutes the file is up to 1GB)

    [04-Feb-2015 22:04:30 Europe/Berlin] PHP Notice: Undefined index: in
    /Applications/MAMP/bin/php/php5.6.2/lib/php/PHP/CodeSniffer/File.php on

    line 3413
    [04-Feb-2015 22:04:30 Europe/Berlin] PHP Notice: Undefined index: in
    /Applications/MAMP/bin/php/php5.6.2/lib/php/PHP/CodeSniffer/File.php on

    line 3425

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedFeb 5, '15 at 7:11a
activeFeb 5, '15 at 8:25a
posts2
users2
websitepear.php.net

2 users in discussion

Gsherwood: 1 post Jgorland: 1 post

People

Translate

site design / logo © 2023 Grokbase