Permalink
Browse files

Fixed bug #19879 : bitwise and operator interpreted as reference by v…

…alue
  • Loading branch information...
1 parent 3d76bbb commit 5cc2790a596e1cdfaafab774772f9b993a3db058 @gsherwood gsherwood committed Apr 2, 2013
@@ -126,6 +126,7 @@ public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
switch ($tokens[$tokenBefore]['code']) {
case T_VARIABLE:
case T_CLOSE_PARENTHESIS:
+ case T_LNUMBER:
// In these cases T_BITWISE_AND represents
// the bitwise and operator.
continue;
@@ -17,4 +17,6 @@ myclass::myfunc($myvar);
while(testfunc($var1, &$var2, $var3, &$var4) === false) {
}
+
+sprintf("0%o", 0777 & $p);
?>
View
@@ -54,6 +54,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
- Fixed bug #19820 : Wrong message level in Generic_Sniffs_CodeAnalysis_EmptyStatementSniff
- Fixed bug #19859 : CodeSniffer::setIgnorePatterns API changed
- Fixed bug #19871 : findExtendedClassName doesn't return FQCN on namespaced classes
+ - Fixed bug #19879 : bitwise and operator interpreted as reference by value
</notes>
<contents>
<dir name="/">

0 comments on commit 5cc2790

Please sign in to comment.