- fix build on Debian systems where access to Curl_* functions is prohibited
[m6w6/ext-http] / http.c
diff --git a/http.c b/http.c
index 1d338647995718d39b9507eb3dfdca16de379ded..65c0d91c8918a3cd015fe053522f0fe0f7fde5d4 100644 (file)
--- a/http.c
+++ b/http.c
@@ -107,7 +107,9 @@ zend_function_entry http_functions[] = {
        PHP_FE(http_put_file, http_arg_pass_ref_4)
        PHP_FE(http_put_stream, http_arg_pass_ref_4)
        PHP_FE(http_request, http_arg_pass_ref_5)
+#ifdef HAVE_CURL_GETFORMDATA
        PHP_FE(http_request_body_encode, NULL)
+#endif
 #endif
        PHP_FE(http_request_method_register, NULL)
        PHP_FE(http_request_method_unregister, NULL)