Fixed bug #66250 (shutdown crash as shared extension)
[m6w6/ext-http] / php_http_client_curl.c
index ce7c3db1ba5d752ff1e0db5f481fe8a0b173b5d3..43396255994dc87fbdc8b729bca30435198579f4 100644 (file)
@@ -1980,7 +1980,11 @@ PHP_MINIT_FUNCTION(http_client_curl)
 
 PHP_MSHUTDOWN_FUNCTION(http_client_curl)
 {
+       php_persistent_handles_cleanup(ZEND_STRL("http\\Client\\Curl"), NULL, 0 TSRMLS_CC);
+       php_persistent_handles_cleanup(ZEND_STRL("http\\Client\\Curl\\Request"), NULL, 0 TSRMLS_CC);
+
        php_http_options_dtor(&php_http_curle_options);
+
        return SUCCESS;
 }