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

BSON classes should support PHP serialization and var_export()

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.0.0-beta2
    • Fix Version/s: 1.2.0-alpha1, 1.2.0
    • Labels:
      None

      Description

      Note that the timestamp bytes differ:

      >>> $o = new MongoDB\BSON\ObjectId
      => <MongoDB\BSON\ObjectID #000000002a26d11f00007f67ae06a97f> {}
       
      >>> $s = serialize($o)
      => "O:21:\"MongoDB\\BSON\\ObjectID\":0:{}"
       
      >>> unserialize($s)
      => <MongoDB\BSON\ObjectID #000000002a26d11500007f67ae06a97f> {}
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jmikola Jeremy Mikola
              Reporter:
              jmikola Jeremy Mikola
              Participants:
              Votes:
              5 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: