Support overloaded operators for Int64 objects

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Unknown
    • 1.16.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • 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.

            Assignee:
            Andreas Braun
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: