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

Implement function to convert bson_value_t to zval

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

      Once the function is implemented, the following TODO from phongo_writeresult_init() should be completed:

      bson_to_zval() requires an array or document, so we'll convert the entire upsert document to a zval. Ideally, we would recurse within the document, use bson_iter_value() to access the "_id" field, and then convert that alone. The "index" field could be read directly as an integer and used with add_index_zval().

            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: