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

Support casting of Int64 objects to scalar integers

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 1.16.0
    • Affects Version/s: None
    • Component/s: None
    • None

      Design decisions:

      • Should a warning be raised on truncation? Doing so would be consistent with existing getters that return a PHP integer from an int64_t.
      • Would a getInt() method be preferable to, or complement, a cast handler? Methods would allow better discovery of this feature through documentation.
      • Adding methods would allow the possibility of letting users control truncation behavior.

            Assignee:
            andreas.braun@mongodb.com Andreas Braun
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: