Encoding a DateTime instance produces no BSON

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.0.0-beta2
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
              Jeremy Mikola
              Reporter:
              Derick Rethans
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: