From: Michael Wallner Date: Mon, 4 Dec 2006 13:37:58 +0000 (+0000) Subject: - HttpRequest::encodeBody() is also available if curl_formget() is in libcurl X-Git-Tag: RELEASE_1_4_0RC1~4 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=b46b6f8c9261ed2b7c5198169073b0ed18a9c4f5 - HttpRequest::encodeBody() is also available if curl_formget() is in libcurl --- diff --git a/http_request_object.c b/http_request_object.c index af4a2b9..3fbfdbf 100644 --- a/http_request_object.c +++ b/http_request_object.c @@ -334,7 +334,7 @@ zend_function_entry http_request_object_fe[] = { HTTP_REQUEST_ALIAS(methodUnregister, http_request_method_unregister) HTTP_REQUEST_ALIAS(methodName, http_request_method_name) HTTP_REQUEST_ALIAS(methodExists, http_request_method_exists) -#ifdef HAVE_CURL_GETFORMDATA +#if defined(HAVE_CURL_GETFORMDATA) || defined(HAVE_CURL_FORMGET) HTTP_REQUEST_ALIAS(encodeBody, http_request_body_encode) #endif EMPTY_FUNCTION_ENTRY