-
Type: New Feature
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
This is a tracking ticket to implement overloaded arithmetic, comparison, and bitwise operators for Int64 objects, as is done for GMP objects.
There will be some open questions if we allow computations involving Int64 objects are PHP numeric scalars. For example, we could only return an Int64 when absolutely necessary:
Int64(0) + 1 // int(1) Int64(2147483647) + 1 // Int64(2147483648) on 32-bit platforms Int64(2147483647) + 1 // int(2147483648) on 64-bit platforms
We should look to GMP or other extensions for guidance here.