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

Unnecessary zend_string_release() in phongo_zval_to_bson() for PHP 7

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

      A redundant zend_string_release() call introduced in PHPC-884 causes bson-fromPHP-006.phpt ("BSON\fromPHP(): PHP documents with null bytes in field name") to leak. It appears that the offending line was incorrectly preserved from the previous code, which always added a reference to existing property names.

            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: