- fix build on Debian systems where access to Curl_* functions is prohibited
[m6w6/ext-http] / http_functions.c
index adb44d2bb40671551bef04900554915dc12387c5..0462c3b760b24aea0b31bd10ac51dea9e5f050a8 100644 (file)
@@ -1670,6 +1670,7 @@ PHP_FUNCTION(http_request)
 }
 /* }}} */
 
+#ifdef HAVE_CURL_GETFORMDATA
 static char *file_get_contents(char *file, size_t *len TSRMLS_DC)
 {
        php_stream *s = NULL;
@@ -1763,6 +1764,7 @@ PHP_FUNCTION(http_request_body_encode)
                        break;
        }
 }
+#endif /* HAVE_CURL_GETFORMDATA */
 #endif /* HTTP_HAVE_CURL */
 /* }}} HAVE_CURL */