X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_request_info.c;h=1d12f36d397f0e26ee05f2c0dbd44f310c251844;hp=71bd4fc21ed5c433d953c98b28ea4ef5b8f6d2af;hb=60ec6f16e06d6666aaf4d4fec36fd53e2e504a0c;hpb=2f5421a388a398ec47ff0c44e2a8c99a6ad08087 diff --git a/http_request_info.c b/http_request_info.c index 71bd4fc..1d12f36 100644 --- a/http_request_info.c +++ b/http_request_info.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2006, Michael Wallner | + | Copyright (c) 2004-2007, Michael Wallner | +--------------------------------------------------------------------+ */ @@ -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 *) */ @@ -124,10 +125,12 @@ PHP_HTTP_API void _http_request_info(http_request *request, HashTable *info) } #endif /* END */ - add_assoc_string_ex(&array, "error", sizeof("error"), request->_error, 1); + add_assoc_string_ex(&array, "error", sizeof("error"), http_request_storage_get(request->ch)->errorbuffer, 1); } /* }}} */ +#endif /* HTTP_HAVE_CURL */ + /* * Local variables: * tab-width: 4