Bug 212528
Summary: | Math functions problem ( ($x<<$n) | ((pow(2, $n) - 1) & ($x>>(32-$n))) ) | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | Need Real Name <vasek> |
Component: | php | Assignee: | Joe Orton <jorton> |
Status: | CLOSED NOTABUG | QA Contact: | David Lawrence <dkl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 4.0 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-12-11 11:54:05 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Need Real Name
2006-10-27 08:48:48 UTC
Thanks for the report. The result of "-3086048340 << 5" will overflow signed 32-bit integer arithemetic (as used internally by PHP) so the output of that function will not be well-defined for that input. If you need to reliably manipulate large integers then the "gmp" extension can be used instead. |