Bug #61225 [NEW]: 0b0+1 = 2
| From: | clicky at erebot dot net | Date: | Thu, 01 Mar 2012 19:20:40 +0000 |
| Subject: | Bug #61225 [NEW]: 0b0+1 = 2 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-167978@lists.php.net to get a copy of this message | ||
From:
Operating system: Irrelevant
PHP version: 5.4SVN-2012-03-01 (snap)
Package: Scripting Engine problem
Bug Type: Bug
Bug description:0b0+1 = 2
Description:
------------
While a patch was issued for bug #61095 (0x0*+<NUM> leading to incorrect
results), the same issue still exists for the new binary notation
introduced in PHP 5.4.0.
Test script:
---------------
var_dump(0b0+1);
Expected result:
----------------
int(1)
Actual result:
--------------
int(2)
--
Edit bug report at https://bugs.php.net/bug.php?id=61225&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=61225&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=61225&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=61225&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=61225&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61225&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=61225&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=61225&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=61225&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=61225&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=61225&r=support
Expected behavior: https://bugs.php.net/fix.php?id=61225&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=61225&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=61225&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=61225&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=61225&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=61225&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=61225&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=61225&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=61225&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=61225&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=61225&r=mysqlcfg