X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_client.c;h=dc972906a70d77c05b7c7b1d0c1a1178538b06ac;hp=2306b040a1c5361b39e72308165944c5c455942f;hb=bc336340e111d6eff9d7236bc7a7129925469ae1;hpb=6ec32dfafe61a805487e26558a8c2025ef25ef22 diff --git a/php_http_client.c b/php_http_client.c index 2306b04..dc97290 100644 --- a/php_http_client.c +++ b/php_http_client.c @@ -612,13 +612,13 @@ static PHP_METHOD(HttpClient, enqueue) if (php_http_client_enqueued(obj->client, msg_obj->message, NULL)) { php_http_error(HE_WARNING, PHP_HTTP_E_CLIENT, "Failed to enqueue request; request already in queue"); } else { - php_http_client_enqueue_t q = { - msg_obj->message, - combined_options(getThis(), request TSRMLS_CC), - msg_queue_dtor, - msg_obj, - {fci, fcc} - }; + php_http_client_enqueue_t q; + q.request = msg_obj->message; + q.options = combined_options(getThis(), request TSRMLS_CC); + q.dtor = msg_queue_dtor; + q.opaque = msg_obj; + q.closure.fci = fci; + q.closure.fcc = fcc; if (fci.size) { Z_ADDREF_P(fci.function_name); @@ -669,13 +669,13 @@ static PHP_METHOD(HttpClient, requeue) if (SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O|f", &request, php_http_client_request_class_entry, &fci, &fcc)) { php_http_client_object_t *obj = zend_object_store_get_object(getThis() TSRMLS_CC); php_http_message_object_t *msg_obj = zend_object_store_get_object(request TSRMLS_CC); - php_http_client_enqueue_t q = { - msg_obj->message, - combined_options(getThis(), request TSRMLS_CC), - msg_queue_dtor, - msg_obj, - {fci, fcc} - }; + php_http_client_enqueue_t q; + q.request = msg_obj->message; + q.options = combined_options(getThis(), request TSRMLS_CC); + q.dtor = msg_queue_dtor; + q.opaque = msg_obj; + q.closure.fci = fci; + q.closure.fcc = fcc; if (fci.size) { Z_ADDREF_P(fci.function_name);