Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-367

Deep cloning of BSONArray and BSONDocument should respect uncloneable objects

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.1
    • Affects Version/s: 1.4.0
    • Component/s: 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:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: