Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 3.7.2

Bug #12477 Undefined index/uncaught exceptions
Submitted: 2007-11-18 23:16 UTC
From: till Assigned: squiz
Status: Bogus Package: PHP_CodeSniffer (version 1.0.0RC2)
PHP Version: 5.2.4 OS: FreeBSD
Roadmaps: (Not assigned)    
Subscription  


 [2007-11-18 23:16 UTC] till (Till Klampaeckel)
Description: ------------ Working on my packages, I discovered the following. Wasn't sure if I had screwed it up, so I did a "pear install --force. ..." to make sure, but the error persists. (I got xdebug installed, hope that it is "ok".) Notice: Uninitialized string offset: 0 in /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php on line 491 Call Stack: 0.0015 129500 1. {main}() /usr/local/bin/phpcs:0 0.0192 972220 2. PHP_CodeSniffer->process() /usr/local/bin/phpcs:286 0.0563 2260292 3. PHP_CodeSniffer->processFiles() /usr/local/share/pear/PHP/CodeSniffer.php:253 0.0576 2264320 4. PHP_CodeSniffer->processFile() /usr/local/share/pear/PHP/CodeSniffer.php:479 1.7382 15278468 5. PHP_CodeSniffer_File->start() /usr/local/share/pear/PHP/CodeSniffer.php:522 1.7383 15278848 6. PEAR_Sniffs_Commenting_FileCommentSniff->process() /usr/local/share/pear/PHP/CodeSniffer/File.php:439 1.7533 15362700 7. PEAR_Sniffs_Commenting_FileCommentSniff->processTags() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:209 1.7536 15374644 8. call_user_func() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:379 1.7536 15374888 9. PEAR_Sniffs_Commenting_FileCommentSniff->processPackage() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:0 Notice: Uninitialized string offset: 0 in /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php on line 491 Call Stack: 0.0015 129500 1. {main}() /usr/local/bin/phpcs:0 0.0192 972220 2. PHP_CodeSniffer->process() /usr/local/bin/phpcs:286 0.0563 2260292 3. PHP_CodeSniffer->processFiles() /usr/local/share/pear/PHP/CodeSniffer.php:253 0.0576 2264320 4. PHP_CodeSniffer->processFile() /usr/local/share/pear/PHP/CodeSniffer.php:479 1.7382 15278468 5. PHP_CodeSniffer_File->start() /usr/local/share/pear/PHP/CodeSniffer.php:522 1.7383 15278848 6. PEAR_Sniffs_Commenting_FileCommentSniff->process() /usr/local/share/pear/PHP/CodeSniffer/File.php:439 1.7533 15362700 7. PEAR_Sniffs_Commenting_FileCommentSniff->processTags() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:209 1.7536 15374644 8. call_user_func() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:379 1.7536 15374888 9. PEAR_Sniffs_Commenting_FileCommentSniff->processPackage() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:0 Notice: Uninitialized string offset: 0 in /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php on line 491 Call Stack: 0.0015 129500 1. {main}() /usr/local/bin/phpcs:0 0.0192 972220 2. PHP_CodeSniffer->process() /usr/local/bin/phpcs:286 0.0563 2260292 3. PHP_CodeSniffer->processFiles() /usr/local/share/pear/PHP/CodeSniffer.php:253 0.0576 2264320 4. PHP_CodeSniffer->processFile() /usr/local/share/pear/PHP/CodeSniffer.php:479 1.7382 15278468 5. PHP_CodeSniffer_File->start() /usr/local/share/pear/PHP/CodeSniffer.php:522 1.7383 15278848 6. PEAR_Sniffs_Commenting_FileCommentSniff->process() /usr/local/share/pear/PHP/CodeSniffer/File.php:439 1.7533 15362700 7. PEAR_Sniffs_Commenting_FileCommentSniff->processTags() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:209 1.7536 15374644 8. call_user_func() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:379 1.7536 15374888 9. PEAR_Sniffs_Commenting_FileCommentSniff->processPackage() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:0 Notice: Uninitialized string offset: 0 in /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php on line 491 Call Stack: 0.0015 129500 1. {main}() /usr/local/bin/phpcs:0 0.0192 972220 2. PHP_CodeSniffer->process() /usr/local/bin/phpcs:286 0.0563 2260292 3. PHP_CodeSniffer->processFiles() /usr/local/share/pear/PHP/CodeSniffer.php:253 0.0576 2264320 4. PHP_CodeSniffer->processFile() /usr/local/share/pear/PHP/CodeSniffer.php:479 1.7382 15278468 5. PHP_CodeSniffer_File->start() /usr/local/share/pear/PHP/CodeSniffer.php:522 1.7383 15278848 6. PEAR_Sniffs_Commenting_FileCommentSniff->process() /usr/local/share/pear/PHP/CodeSniffer/File.php:439 1.7533 15362700 7. PEAR_Sniffs_Commenting_FileCommentSniff->processTags() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:209 1.7536 15374644 8. call_user_func() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:379 1.7536 15374888 9. PEAR_Sniffs_Commenting_FileCommentSniff->processPackage() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:0 Notice: Uninitialized string offset: 0 in /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php on line 491 Call Stack: 0.0015 129500 1. {main}() /usr/local/bin/phpcs:0 0.0192 972220 2. PHP_CodeSniffer->process() /usr/local/bin/phpcs:286 0.0563 2260292 3. PHP_CodeSniffer->processFiles() /usr/local/share/pear/PHP/CodeSniffer.php:253 0.0576 2264320 4. PHP_CodeSniffer->processFile() /usr/local/share/pear/PHP/CodeSniffer.php:479 1.7382 15278468 5. PHP_CodeSniffer_File->start() /usr/local/share/pear/PHP/CodeSniffer.php:522 1.7383 15278848 6. PEAR_Sniffs_Commenting_FileCommentSniff->process() /usr/local/share/pear/PHP/CodeSniffer/File.php:439 1.7533 15362700 7. PEAR_Sniffs_Commenting_FileCommentSniff->processTags() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:209 1.7536 15374644 8. call_user_func() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:379 1.7536 15374888 9. PEAR_Sniffs_Commenting_FileCommentSniff->processPackage() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:0 Notice: Uninitialized string offset: 0 in /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php on line 491 Call Stack: 0.0015 129500 1. {main}() /usr/local/bin/phpcs:0 0.0192 972220 2. PHP_CodeSniffer->process() /usr/local/bin/phpcs:286 0.0563 2260292 3. PHP_CodeSniffer->processFiles() /usr/local/share/pear/PHP/CodeSniffer.php:253 0.0576 2264320 4. PHP_CodeSniffer->processFile() /usr/local/share/pear/PHP/CodeSniffer.php:479 1.7382 15278468 5. PHP_CodeSniffer_File->start() /usr/local/share/pear/PHP/CodeSniffer.php:522 1.7383 15278848 6. PEAR_Sniffs_Commenting_FileCommentSniff->process() /usr/local/share/pear/PHP/CodeSniffer/File.php:439 1.7533 15362700 7. PEAR_Sniffs_Commenting_FileCommentSniff->processTags() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:209 1.7536 15374644 8. call_user_func() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:379 1.7536 15374888 9. PEAR_Sniffs_Commenting_FileCommentSniff->processPackage() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:0 Notice: Uninitialized string offset: 0 in /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php on line 491 Call Stack: 0.0015 129500 1. {main}() /usr/local/bin/phpcs:0 0.0192 972220 2. PHP_CodeSniffer->process() /usr/local/bin/phpcs:286 0.0563 2260292 3. PHP_CodeSniffer->processFiles() /usr/local/share/pear/PHP/CodeSniffer.php:253 0.0576 2264320 4. PHP_CodeSniffer->processFile() /usr/local/share/pear/PHP/CodeSniffer.php:479 1.7382 15278468 5. PHP_CodeSniffer_File->start() /usr/local/share/pear/PHP/CodeSniffer.php:522 1.7383 15278848 6. PEAR_Sniffs_Commenting_FileCommentSniff->process() /usr/local/share/pear/PHP/CodeSniffer/File.php:439 1.7533 15362700 7. PEAR_Sniffs_Commenting_FileCommentSniff->processTags() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:209 1.7536 15374644 8. call_user_func() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:379 1.7536 15374888 9. PEAR_Sniffs_Commenting_FileCommentSniff->processPackage() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:0 Notice: Uninitialized string offset: 0 in /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php on line 491 Call Stack: 0.0015 129500 1. {main}() /usr/local/bin/phpcs:0 0.0192 972220 2. PHP_CodeSniffer->process() /usr/local/bin/phpcs:286 0.0563 2260292 3. PHP_CodeSniffer->processFiles() /usr/local/share/pear/PHP/CodeSniffer.php:253 0.0576 2264320 4. PHP_CodeSniffer->processFile() /usr/local/share/pear/PHP/CodeSniffer.php:479 1.7382 15278468 5. PHP_CodeSniffer_File->start() /usr/local/share/pear/PHP/CodeSniffer.php:522 1.8187 15463008 6. PEAR_Sniffs_Commenting_ClassCommentSniff->process() /usr/local/share/pear/PHP/CodeSniffer/File.php:439 1.8367 15562340 7. PEAR_Sniffs_Commenting_FileCommentSniff->processTags() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/ClassCommentSniff.php:181 1.8370 15573812 8. call_user_func() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:379 1.8370 15574116 9. PEAR_Sniffs_Commenting_FileCommentSniff->processPackage() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:0 Notice: Uninitialized string offset: 0 in /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php on line 491 Call Stack: 0.0015 129500 1. {main}() /usr/local/bin/phpcs:0 0.0192 972220 2. PHP_CodeSniffer->process() /usr/local/bin/phpcs:286 0.0563 2260292 3. PHP_CodeSniffer->processFiles() /usr/local/share/pear/PHP/CodeSniffer.php:253 0.0576 2264320 4. PHP_CodeSniffer->processFile() /usr/local/share/pear/PHP/CodeSniffer.php:479 1.7382 15278468 5. PHP_CodeSniffer_File->start() /usr/local/share/pear/PHP/CodeSniffer.php:522 1.8187 15463008 6. PEAR_Sniffs_Commenting_ClassCommentSniff->process() /usr/local/share/pear/PHP/CodeSniffer/File.php:439 1.8367 15562340 7. PEAR_Sniffs_Commenting_FileCommentSniff->processTags() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/ClassCommentSniff.php:181 1.8370 15573812 8. call_user_func() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:379 1.8370 15574116 9. PEAR_Sniffs_Commenting_FileCommentSniff->processPackage() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:0 Notice: Uninitialized string offset: 0 in /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php on line 491 Call Stack: 0.0015 129500 1. {main}() /usr/local/bin/phpcs:0 0.0192 972220 2. PHP_CodeSniffer->process() /usr/local/bin/phpcs:286 0.0563 2260292 3. PHP_CodeSniffer->processFiles() /usr/local/share/pear/PHP/CodeSniffer.php:253 0.0576 2264320 4. PHP_CodeSniffer->processFile() /usr/local/share/pear/PHP/CodeSniffer.php:479 1.7382 15278468 5. PHP_CodeSniffer_File->start() /usr/local/share/pear/PHP/CodeSniffer.php:522 1.8187 15463008 6. PEAR_Sniffs_Commenting_ClassCommentSniff->process() /usr/local/share/pear/PHP/CodeSniffer/File.php:439 1.8367 15562340 7. PEAR_Sniffs_Commenting_FileCommentSniff->processTags() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/ClassCommentSniff.php:181 1.8370 15573812 8. call_user_func() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:379 1.8370 15574116 9. PEAR_Sniffs_Commenting_FileCommentSniff->processPackage() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:0 Notice: Uninitialized string offset: 0 in /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php on line 491 Call Stack: 0.0015 129500 1. {main}() /usr/local/bin/phpcs:0 0.0192 972220 2. PHP_CodeSniffer->process() /usr/local/bin/phpcs:286 0.0563 2260292 3. PHP_CodeSniffer->processFiles() /usr/local/share/pear/PHP/CodeSniffer.php:253 0.0576 2264320 4. PHP_CodeSniffer->processFile() /usr/local/share/pear/PHP/CodeSniffer.php:479 1.7382 15278468 5. PHP_CodeSniffer_File->start() /usr/local/share/pear/PHP/CodeSniffer.php:522 1.8187 15463008 6. PEAR_Sniffs_Commenting_ClassCommentSniff->process() /usr/local/share/pear/PHP/CodeSniffer/File.php:439 1.8367 15562340 7. PEAR_Sniffs_Commenting_FileCommentSniff->processTags() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/ClassCommentSniff.php:181 1.8370 15573812 8. call_user_func() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:379 1.8370 15574116 9. PEAR_Sniffs_Commenting_FileCommentSniff->processPackage() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:0 Notice: Uninitialized string offset: 0 in /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php on line 491 Call Stack: 0.0015 129500 1. {main}() /usr/local/bin/phpcs:0 0.0192 972220 2. PHP_CodeSniffer->process() /usr/local/bin/phpcs:286 0.0563 2260292 3. PHP_CodeSniffer->processFiles() /usr/local/share/pear/PHP/CodeSniffer.php:253 0.0576 2264320 4. PHP_CodeSniffer->processFile() /usr/local/share/pear/PHP/CodeSniffer.php:479 1.7382 15278468 5. PHP_CodeSniffer_File->start() /usr/local/share/pear/PHP/CodeSniffer.php:522 1.8187 15463008 6. PEAR_Sniffs_Commenting_ClassCommentSniff->process() /usr/local/share/pear/PHP/CodeSniffer/File.php:439 1.8367 15562340 7. PEAR_Sniffs_Commenting_FileCommentSniff->processTags() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/ClassCommentSniff.php:181 1.8370 15573812 8. call_user_func() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:379 1.8370 15574116 9. PEAR_Sniffs_Commenting_FileCommentSniff->processPackage() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:0 Notice: Uninitialized string offset: 0 in /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php on line 491 Call Stack: 0.0015 129500 1. {main}() /usr/local/bin/phpcs:0 0.0192 972220 2. PHP_CodeSniffer->process() /usr/local/bin/phpcs:286 0.0563 2260292 3. PHP_CodeSniffer->processFiles() /usr/local/share/pear/PHP/CodeSniffer.php:253 0.0576 2264320 4. PHP_CodeSniffer->processFile() /usr/local/share/pear/PHP/CodeSniffer.php:479 1.7382 15278468 5. PHP_CodeSniffer_File->start() /usr/local/share/pear/PHP/CodeSniffer.php:522 1.8187 15463008 6. PEAR_Sniffs_Commenting_ClassCommentSniff->process() /usr/local/share/pear/PHP/CodeSniffer/File.php:439 1.8367 15562340 7. PEAR_Sniffs_Commenting_FileCommentSniff->processTags() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/ClassCommentSniff.php:181 1.8370 15573812 8. call_user_func() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:379 1.8370 15574116 9. PEAR_Sniffs_Commenting_FileCommentSniff->processPackage() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:0 Notice: Uninitialized string offset: 0 in /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php on line 491 Call Stack: 0.0015 129500 1. {main}() /usr/local/bin/phpcs:0 0.0192 972220 2. PHP_CodeSniffer->process() /usr/local/bin/phpcs:286 0.0563 2260292 3. PHP_CodeSniffer->processFiles() /usr/local/share/pear/PHP/CodeSniffer.php:253 0.0576 2264320 4. PHP_CodeSniffer->processFile() /usr/local/share/pear/PHP/CodeSniffer.php:479 1.7382 15278468 5. PHP_CodeSniffer_File->start() /usr/local/share/pear/PHP/CodeSniffer.php:522 1.8187 15463008 6. PEAR_Sniffs_Commenting_ClassCommentSniff->process() /usr/local/share/pear/PHP/CodeSniffer/File.php:439 1.8367 15562340 7. PEAR_Sniffs_Commenting_FileCommentSniff->processTags() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/ClassCommentSniff.php:181 1.8370 15573812 8. call_user_func() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:379 1.8370 15574116 9. PEAR_Sniffs_Commenting_FileCommentSniff->processPackage() /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:0 Notice: Undefined index: scope_opener in /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Classes/ClassDeclarationSniff.php on line 63 Call Stack: 0.0015 129500 1. {main}() /usr/local/bin/phpcs:0 0.0192 972220 2. PHP_CodeSniffer->process() /usr/local/bin/phpcs:286 0.0563 2260292 3. PHP_CodeSniffer->processFiles() /usr/local/share/pear/PHP/CodeSniffer.php:253 0.0576 2264320 4. PHP_CodeSniffer->processFile() /usr/local/share/pear/PHP/CodeSniffer.php:479 1.7382 15278468 5. PHP_CodeSniffer_File->start() /usr/local/share/pear/PHP/CodeSniffer.php:522 2.8858 16731396 6. PEAR_Sniffs_Classes_ClassDeclarationSniff->process() /usr/local/share/pear/PHP/CodeSniffer/File.php:439 Notice: Undefined index: in /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Classes/ClassDeclarationSniff.php on line 65 Call Stack: 0.0015 129500 1. {main}() /usr/local/bin/phpcs:0 0.0192 972220 2. PHP_CodeSniffer->process() /usr/local/bin/phpcs:286 0.0563 2260292 3. PHP_CodeSniffer->processFiles() /usr/local/share/pear/PHP/CodeSniffer.php:253 0.0576 2264320 4. PHP_CodeSniffer->processFile() /usr/local/share/pear/PHP/CodeSniffer.php:479 1.7382 15278468 5. PHP_CodeSniffer_File->start() /usr/local/share/pear/PHP/CodeSniffer.php:522 2.8858 16731396 6. PEAR_Sniffs_Classes_ClassDeclarationSniff->process() /usr/local/share/pear/PHP/CodeSniffer/File.php:439 Fatal error: Uncaught PHP_CodeSniffer_Exception: $stackPtr cannot be null in /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Classes/ClassDeclarationSniff.php on line 87 #0 /usr/local/share/pear/PHP/CodeSniffer/Standards/PEAR/Sniffs/Classes/ClassDeclarationSniff.php(87): PHP_CodeSniffer_File->addError('Opening class b...', NULL) #1 /usr/local/share/pear/PHP/CodeSniffer/File.php(439): PEAR_Sniffs_Classes_ClassDeclarationSniff->process(Object(PHP_CodeSniffer_File), 11522) #2 /usr/local/share/pear/PHP/CodeSniffer.php(522): PHP_CodeSniffer_File->start() #3 /usr/local/share/pear/PHP/CodeSniffer.php(479): PHP_CodeSniffer->processFile('/usr/home/till/...') #4 /usr/local/share/pear/PHP/CodeSniffer.php(253): PHP_CodeSniffer->processFiles('Contact/Vcard/', false) #5 /usr/local/bin/phpcs(286): PHP_CodeSniffer->process(Array, 'PEAR', Array, false) #6 {main} thrown in /usr/local/share/pear/PHP/CodeSniffer/File.php on line 536

Comments

 [2007-11-19 00:56 UTC] till (Till Klampaeckel)
This "behavior" was due to a parse error in the file. Feel free to bogus if there is no fix to "detect" that.
 [2007-11-19 01:03 UTC] squiz (Greg Sherwood)
Thank you for taking the time to write to us, but this is not a bug. Yep, parse errors do that. I have purposely not removed all the errors you get so that you know there is something wrong. I can't actually parse the file because of all the issues with trying to include/require external files, but you can include the Zend Code Analyzer in your own custom standard that will run a check for you. That is not part of the PEAR standard though.