Bug #61225 [Opn->Csd]: 0b0+1 = 2

From: Date: Fri, 02 Mar 2012 02:37:02 +0000
Subject: Bug #61225 [Opn->Csd]: 0b0+1 = 2
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-168000@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=61225&edit=1 ID: 61225 Updated by: pierrick@php.net Reported by: clicky at erebot dot net Summary: 0b0+1 = 2 -Status: Open +Status: Closed Type: Bug Package: Scripting Engine problem Operating System: Irrelevant PHP Version: 5.4SVN-2012-03-01 (snap) -Assigned To: +Assigned To: pierrick Block user comment: N Private report: N New Comment: This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2012-03-02 02:36:25] pierrick@php.net Automatic comment from SVN on behalf of pierrick Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=323763 Log: Fixed bug #61225 (Lexing 0b0*+&lt;NUM&gt; incorectly) ------------------------------------------------------------------------ [2012-03-01 19:20:40] 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) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=61225&edit=1

« previous php.bugs (#168000) next »