X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_request_api.c;h=b253a97caae73cca8b99dcf883dd39889b81e52c;hb=6aca56d611a22eb559098f3c02c31634a6f9ff9f;hp=b6d7b1e76e4cb602e0ef8e9a13626b4160ced6c5;hpb=9676c81efbb8f180fa189d71a7ecb50dde4f5646;p=m6w6%2Fext-http diff --git a/http_request_api.c b/http_request_api.c index b6d7b1e..b253a97 100644 --- a/http_request_api.c +++ b/http_request_api.c @@ -899,7 +899,9 @@ static int http_curl_progress_callback(void *ctx, double dltotal, double dlnow, add_assoc_double(param, "ulnow", ulnow); with_error_handling(EH_NORMAL, NULL) { + request->_in_progress_cb = 1; call_user_function(EG(function_table), NULL, request->_progress_callback, &retval, 1, ¶m TSRMLS_CC); + request->_in_progress_cb = 0; } end_error_handling(); zval_ptr_dtor(¶m);