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

Bug #16682 Squiz_Sniffs_Strings_DoubleQuoteUsageSniff reports string "\0" as invalid
Submitted: 2009-10-07 15:40 UTC
From: thezero Assigned: squiz
Status: Closed Package: PHP_CodeSniffer (version 1.2.0)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2009-10-07 15:40 UTC] thezero (Jakub Tom├ínek)
Description: ------------ Strings "\0" and '\0' are not equal. '\0' is not "\0" but "\\0". Test script: --------------- <?php $nullByteString = "\0"; ?> Expected result: ---------------- FOUND 1 ERROR(S) AND 0 WARNING(S) AFFECTING 1 LINE(S) -------------------------------------------------------------------------------- 2 | ERROR | Missing file doc comment Actual result: -------------- FOUND 2 ERROR(S) AND 0 WARNING(S) AFFECTING 1 LINE(S) -------------------------------------------------------------------------------- 2 | ERROR | Missing file doc comment 2 | ERROR | String "\0" does not require double quotes; use single quotes instead

Comments

 [2009-10-09 07:12 UTC] squiz (Greg Sherwood)
-Status: Open +Status: Closed -Assigned To: +Assigned To: squiz
This bug has been fixed in SVN. 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.