X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_client.c;h=2b4a31d08a8ce10895d4baac931c9ff1cc683310;hp=f96164bbba08ad449733b745503149948412de03;hb=791511f3bc18cdc68b3f27b43d9396cf56d99e5a;hpb=eaa046dc3e6496e523a17c3b786ef27067b9795c diff --git a/php_http_client.c b/php_http_client.c index f96164b..2b4a31d 100644 --- a/php_http_client.c +++ b/php_http_client.c @@ -375,7 +375,7 @@ static void handle_history(zval *zclient, php_http_message_t *request, php_http_ zval_ptr_dtor(&new_hist); } -static STATUS handle_response(void *arg, php_http_client_t *client, php_http_client_enqueue_t *e, php_http_message_t **request, php_http_message_t **response) +static STATUS handle_response(void *arg, php_http_client_t *client, php_http_client_enqueue_t *e, php_http_message_t **response) { zend_bool dequeue = 0; zval zclient; @@ -395,7 +395,7 @@ static STATUS handle_response(void *arg, php_http_client_t *client, php_http_cli php_http_message_set_type(msg, PHP_HTTP_RESPONSE); if (z_is_true(zend_read_property(php_http_client_class_entry, &zclient, ZEND_STRL("recordHistory"), 0 TSRMLS_CC))) { - handle_history(&zclient, *request, *response TSRMLS_CC); + handle_history(&zclient, e->request, *response TSRMLS_CC); } /* hard detach, redirects etc. are in the history */