[PHP-BUG] Bug #68562 [NEW]: bitwise operators in conjunction with strings
[email protected] ("rstoll at tutteli dot ch")
| Newsgroups | php.standards |
|---|---|
| Message-ID | <[email protected]> |
From: rstoll at tutteli dot ch Operating system: Windows PHP version: 5.6.3 Package: PHP Language Specification Bug Type: Bug Bug description:bitwise operators in conjunction with strings Description: ------------ The spec is not correct/complete for certain bitwise operations in conjunction with strings. Consider the following: http://3v4l.org/fR1pE For instance, the spec does not mention anything about the ~ in conjunction with strings: https://github.com/php/php-langspec/blob/master/spec/10-expressions.md#unary-arithmetic-operators The section about bitwise operator mentions that the return type would be int and that the operands would be converted to integers, which is both wrong for strings: https://github.com/php/php-langspec/blob/master/spec/10-expressions.md#bitwise-inclusive-or-operator etc. -- Edit bug report at https://bugs.php.net/bug.php?id=68562&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68562&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68562&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68562&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=68562&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=68562&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=68562&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=68562&r=needscript Try newer version: https://bugs.php.net/fix.php?id=68562&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=68562&r=support Expected behavior: https://bugs.php.net/fix.php?id=68562&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=68562&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=68562&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=68562&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68562&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=68562&r=dst IIS Stability: https://bugs.php.net/fix.php?id=68562&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=68562&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=68562&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=68562&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=68562&r=mysqlcfg