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

Return Int64 instances when converting raw BSON objects to PHP values

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 1.16.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      For consistency with the behaviour of BSON\Document::get and BSON\PackedArray::get, the toPHP methods in both classes should not convert BSON long values to int scalars, but always return BSON\Int64 instances.

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

              Created:
              Updated:
              Resolved: