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

Bug #15231 Notice: Uninitialized string offset: 0 in FileCommentSniff.php on line 555
Submitted: 2008-12-03 22:18 UTC
From: doconnor Assigned: squiz
Status: Closed Package: PHP_CodeSniffer (version CVS)
PHP Version: 5.2.6 OS:
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 48 - 21 = ?

 
 [2008-12-03 22:18 UTC] doconnor (Daniel O'Connor)
Description: ------------ When running phpcs over the DB_DOM directory from CVS, I get e_notices. This is unfortunate, if I try to produce --report=xml, invalid xml is generated. Test script: --------------- clockwerx@clockwerx-desktop:~/pear/DB_DOM$ cvs update clockwerx@clockwerx-desktop:~/pear/DB_DOM$ phpcs . Actual result: -------------- Notice: Uninitialized string offset: 0 in /usr/share/php/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php on line 555 Call Stack: 0.0006 63112 1. {main}() /usr/bin/phpcs:0 0.0466 1093344 2. PHP_CodeSniffer_CLI->process() /usr/bin/phpcs:30 0.0474 1095796 3. PHP_CodeSniffer->process() /usr/share/php/PHP/CodeSniffer/CLI.php:346 0.1302 2646472 4. PHP_CodeSniffer->processFiles() /usr/share/php/PHP/CodeSniffer.php:333 0.3728 2842868 5. PHP_CodeSniffer->processFile() /usr/share/php/PHP/CodeSniffer.php:626 0.3730 2843484 6. PHP_CodeSniffer_File->start() /usr/share/php/PHP/CodeSniffer.php:688 0.4461 3205496 7. PEAR_Sniffs_Commenting_ClassCommentSniff->process() /usr/share/php/PHP/CodeSniffer/File.php:371 0.4568 3250764 8. PEAR_Sniffs_Commenting_FileCommentSniff->processTags() /usr/share/php/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/ClassCommentSniff.php:201 0.4576 3250764 9. call_user_func() /usr/share/php/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:428 0.4577 3250828 10. PEAR_Sniffs_Commenting_FileCommentSniff->processPackage() /usr/share/php/PHP/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php:0

Comments

 [2008-12-04 00:35 UTC] squiz (Greg Sherwood)
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.