Deep cloning of BSONArray and BSONDocument should respect uncloneable objects

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.4.1
    • Affects Version/s: 1.4.0
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The __clone() method on BSONArray and BSONDocument should respect that some objects within the base ArrayObject may not be cloneable. Failure to do so may result in errors such as:

      "Trying to clone an uncloneable object of class %s"

      This is particularly important because the driver's BSON classes cannot be cloned (pending PHPC-1230).

            Assignee:
            Jeremy Mikola
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: