PHP :: Bug #61225 :: 0b0+1 = 2
[2012-03-01 19:20 UTC] clicky at erebot dot net
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)
[2012-03-02 02:36 UTC] pierrick@php.net
[2012-03-02 02:37 UTC] pierrick@php.net
[2012-03-02 02:37 UTC] pierrick@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: pierrick
[2012-04-18 09:45 UTC] laruence@php.net
[2012-07-24 23:37 UTC] rasmus@php.net
[2013-11-17 09:33 UTC] laruence@php.net