X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_request_info.c;h=69770ae3cc5801af6828237eb91d2d5bd0eafb47;hp=bb7e601e66de2904a4abc8904de79b1683eb98f7;hb=246e63053d5a04be443015d71a52181da80054ac;hpb=aebfa7783e7b280bff4975649b20494e5eb932bc diff --git a/http_request_info.c b/http_request_info.c index bb7e601..69770ae 100644 --- a/http_request_info.c +++ b/http_request_info.c @@ -15,6 +15,7 @@ #define HTTP_WANT_CURL #include "php_http.h" +#ifdef HTTP_HAVE_CURL #include "php_http_request_api.h" /* {{{ void http_request_info(http_request *, HashTable *) */ @@ -119,7 +120,7 @@ PHP_HTTP_API void _http_request_info(http_request *request, HashTable *info) for (p = s; p; p = p->next) { add_next_index_string(subarray, p->data, 1); } - add_assoc_zval_ex(&array, "cookielist", sizeof("cookielist"), subarray); + add_assoc_zval_ex(&array, "cookies", sizeof("cookies"), subarray); curl_slist_free_all(s); } #endif @@ -128,6 +129,8 @@ PHP_HTTP_API void _http_request_info(http_request *request, HashTable *info) } /* }}} */ +#endif /* HTTP_HAVE_CURL */ + /* * Local variables: * tab-width: 4