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

Reply via email to