- fix overload guards leaks
[m6w6/ext-http] / http.c
diff --git a/http.c b/http.c
index e97c12d743b4fdeb59e4827aeca24c6d5bc8edf6..874528ed0221d96c0429655de979a23daea2d3e9 100644 (file)
--- a/http.c
+++ b/http.c
@@ -107,9 +107,7 @@ 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)
@@ -137,16 +135,16 @@ PHP_MINFO_FUNCTION(http);
 /* {{{ http_module_dep */
 #if ZEND_EXTENSION_API_NO >= 220050617
 static zend_module_dep http_module_deps[] = {
-#      if HTTP_HAVE_EXT(SPL)
+#      ifdef HTTP_HAVE_SPL
        ZEND_MOD_REQUIRED("spl")
 #      endif
-#      if HTTP_HAVE_EXT(HASH)
+#      ifdef HTTP_HAVE_HASH
        ZEND_MOD_REQUIRED("hash")
 #      endif
-#      if HTTP_HAVE_EXT(SESSION)
+#      ifdef HTTP_HAVE_SESSION
        ZEND_MOD_REQUIRED("session")
 #      endif
-#      if HTTP_HAVE_EXT(ICONV)
+#      ifdef HTTP_HAVE_ICONV
        ZEND_MOD_REQUIRED("iconv")
 #      endif
        {NULL, NULL, NULL, 0}