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

ID: 17420
Updated by: andreazzini@gmail.com
Reported By: andreazzini at gmail dot com
Summary: Uncaught exception
Status: Open
Type: Bug
Package: PHP_CodeSniffer
Operating System: Debian Lenny (testing) x64
Package Version: 1.2.2
PHP Version: 5.3.2
Roadmap Versions:
New Comment:

No way to attach a PHP file - a pretty bad limitation for the bug
tracking system IMHO.

You can download the file at
http://allievi.sssup.it/user/endi/JIncludes.php.txt


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

[2010-05-20 17:55:23] endi

Description:
------------
PHP Fatal error: Uncaught PHP_CodeSniffer_Exception: $stackPtr is not
a class member var in
/usr/share/php/PHP/CodeSniffer/Standards/PEAR/Sniffs/NamingConventions/ValidVariableNameSniff.php
on line 51


I am attaching the file being tested, which is 237 lines x 8KB. It is
not a stand alone file, rather a Joomla! plugin, so you can test it with
phpcs but not run it directly.

Actual result:
--------------
PHP Fatal error: Uncaught PHP_CodeSniffer_Exception: $stackPtr is not
a class member var in
/usr/share/php/PHP/CodeSniffer/Standards/PEAR/Sniffs/NamingConventions/ValidVariableNameSniff.php
on line 51
#0
/usr/share/php/PHP/CodeSniffer/Standards/PEAR/Sniffs/NamingConventions/ValidVariableNameSniff.php(51):
PHP_CodeSniffer_File->getMemberProperties(336)
#1
/usr/share/php/PHP/CodeSniffer/Standards/AbstractVariableSniff.php(154):
PEAR_Sniffs_NamingConventions_ValidVariableNameSniff->processMemberVar(Object(PHP_CodeSniffer_File),
336)
#2
/usr/share/php/PHP/CodeSniffer/Standards/AbstractScopeSniff.php(190):
PHP_CodeSniffer_Standards_AbstractVariableSniff->processTokenWithinScope(Object(PHP_CodeSniffer_File),
336, 40)
#3 /usr/share/php/PHP/CodeSniffer/File.php(431):
PHP_CodeSniffer_Standards_AbstractScopeSniff->process(Object(PHP_CodeSniffer_File),
336)
#4 /usr/share/php/PHP/CodeSniffer.php(900):
PHP_CodeSniffer_File->start(NULL)
#5 /usr/share/php/PHP/CodeSniffer.php(815):
PHP_CodeSniffer->_processFile('/home/andrea/tr...', NULL)
#6 in /usr/share/php/PHP/CodeSniffer/File.php on line 2047

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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMay 20, '10 at 5:08p
activeMay 20, '10 at 5:08p
posts1
users1
websitepear.php.net

1 user in discussion

Andreazzini: 1 post

People

Translate

site design / logo © 2022 Grokbase