Replace zend_hash_destroy with zend_hash_release

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • PHP Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      PHP 8.0 introduced zend_hash_release() in php/php-src@d3eeeb6. This function considers refcounts and immutability, and should be preferred to calling zend_hash_destroy() followed by FREE_HASHTABLE().

      This came up in mongodb/mongo-php-driver#1850 for PHPC-2505.

            Assignee:
            Unassigned
            Reporter:
            Jeremy Mikola (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: