Bug #61863 [Opn]: bitwise operation make overflow
| From: | admin at todayis dot kr | Date: | Fri, 27 Apr 2012 07:04:31 +0000 |
| Subject: | Bug #61863 [Opn]: bitwise operation make overflow | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-169991@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61863&edit=1
ID: 61863
User updated by: admin at todayis dot kr
Reported by: admin at todayis dot kr
-Summary: bitwise operation make buffer overflow
+Summary: bitwise operation make overflow
Status: Open
Type: Bug
Package: Apache2 related
Operating System: Windows/Linux
-PHP Version: 5.4Git-2012-04-27 (Git)
+PHP Version: 5.4.0
Block user comment: N
Private report: N
New Comment:
.
Previous Comments:
------------------------------------------------------------------------
[2012-04-27 06:36:27] admin at todayis dot kr
Description:
------------
if i use bitwise operation then variable type doesn't changed float or other type.
stay in int
Test script:
---------------
$value = "abcdefg";
for($i=0,$h=0;$i <strlen($value);$i++) {
$h = ($h << 10) + ord($value[$i]);
echo $h."\n";
}
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61863&edit=1