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

Add support for var_export() and __set_state() in CursorId.c

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.10.0
    • Affects Version/s: None
    • Component/s: None

      MongoDB\Driver\CursorId cannot be exported using var_export. To make this consistent with other classes, behaviour from MongoDB\BSON\Int64 needs to be duplicated here.

      This also includes adding an initialized field to the php_phongo_cursorid_t struct to be able to differentiate an uninitialised struct from one with cursor ID 0.

            Assignee:
            tanli.su@mongodb.com Tanli Su (Inactive)
            Reporter:
            andreas.braun@mongodb.com Andreas Braun
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: