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

Determine how BSON deserialization of 32/64-bit integers should occur

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.1.1
    • Affects Version/s: None
    • Component/s: None
    • None

      This ticket is a placeholder for discussing how we'd like to handle deserialization of BSON integers where the encoded size does not match the platform size. Ideally, we should allow lossless conversion of values between the database and PHP. Lossy conversion is not simply about 64-bit integers being serialized as 32-bit; if a 32-bit BSON type is deserialized to a 64-bit integer in PHP, we might write it back to the database as 64-bit (may be a problem in some cases).

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: