Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-1214

Implement do_operation handler for Int64

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      This could allow users on 32-bit platforms to perform mathematical operations with native integers and Int64 types. If the result of an operation fits in the range of a 32-bit integers, it would probably make sense to return that instead of an Int64 object (like BSON decoding); however, we should see if there may be edge cases involved.

      Alternatively, we may decide to simply not implement this and suggest that users resort to GMP for computations (akin to using BCMath for Decimal128).

            Assignee:
            Unassigned Unassigned
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: