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

Encoding a DateTime instance produces no BSON

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.0.0-beta2
    • Affects Version/s: None
    • Component/s: None
    • None

      tests/bson/bson-utcdatetime-001.phpt does not include an array element for the DateTime object in test #2. The "expected" test output says:

      Test#2 { }
      string(3) "{ }"
      string(3) "{ }"
      bool(false)
      

      where it should probably be:

      Test#2 { "0" : {  } }
      string(14) "{ "0" : {  } }"
      string(14) "{ "0" : {  } }"
      bool(false)
      

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            derick Derick Rethans
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: