- improved put support
[m6w6/ext-http] / http_request_api.c
index e2e5ab6d3e3c33a3a0892be5a0e9d23c468721e9..19f25fa42759967a56e74df7f44fe4e37bf92a58 100644 (file)
@@ -193,6 +193,10 @@ PHP_HTTP_API void _http_request_body_dtor(http_request_body *body TSRMLS_DC)
                case HTTP_REQUEST_BODY_CURLPOST:
                        curl_formfree(body->data);
                break;
+
+               case HTTP_REQUEST_BODY_UPLOADFILE:
+                       php_stream_close(body->data);
+               break;
        }
 }
 /* }}} */