Unnecessary zend_string_release() in phongo_zval_to_bson() for PHP 7

XMLWordPrintableJSON

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

                Created:
                Updated:
                Resolved: