From: Michael Wallner Date: Wed, 27 Jul 2005 16:33:15 +0000 (+0000) Subject: - avoid callbacks during shutdown X-Git-Tag: RELEASE_0_11_0~16 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=3e696a1c24d6ffc382567876eafa2a5bd9b8afa7;p=m6w6%2Fext-http - avoid callbacks during shutdown --- 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);