- avoid callbacks during shutdown
authorMichael Wallner <mike@php.net>
Wed, 27 Jul 2005 16:33:15 +0000 (16:33 +0000)
committerMichael Wallner <mike@php.net>
Wed, 27 Jul 2005 16:33:15 +0000 (16:33 +0000)
http_request_object.c

index e744a227ede89642442302d35629d9dcf856d90a..bca9bcb5b6a8188cb339349afbea6b4495feb9b3 100644 (file)
@@ -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);