From 3e696a1c24d6ffc382567876eafa2a5bd9b8afa7 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 27 Jul 2005 16:33:15 +0000 Subject: [PATCH] - avoid callbacks during shutdown --- http_request_object.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/http_request_object.c b/http_request_object.c index e744a22..bca9bcb 100644 --- a/http_request_object.c +++ b/http_request_object.c @@ -390,7 +390,9 @@ void _http_request_object_free(zend_object *object TSRMLS_DC) if (o->ch) { /* avoid nasty segfaults with already cleaned up callbacks */ curl_easy_setopt(o->ch, CURLOPT_NOPROGRESS, 1); + curl_easy_setopt(o->ch, CURLOPT_PROGRESSFUNCTION, NULL); curl_easy_setopt(o->ch, CURLOPT_VERBOSE, 0); + curl_easy_setopt(o->ch, CURLOPT_DEBUGFUNCTION, NULL); curl_easy_cleanup(o->ch); } phpstr_dtor(&o->response); -- 2.30.2