X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_functions.c;h=bf1e19393557e10c0105bec88a384c755ab7b2f7;hp=adb44d2bb40671551bef04900554915dc12387c5;hb=84a00407857506ab8cfb9335cbe5f495a68e0880;hpb=3fcfaba41748c3fd452e84ba6da6ea2d91f28e5e diff --git a/http_functions.c b/http_functions.c index adb44d2..bf1e193 100644 --- a/http_functions.c +++ b/http_functions.c @@ -21,7 +21,7 @@ #include "ext/standard/php_string.h" #include "zend_operators.h" -#ifdef HAVE_PHP_SESSION +#ifdef HTTP_HAVE_SESSION # include "ext/session/php_session.h" #endif @@ -728,7 +728,7 @@ PHP_FUNCTION(http_redirect) RETURN_FALSE; } -#ifdef HAVE_PHP_SESSION +#ifdef HTTP_HAVE_SESSION /* append session info */ if (session) { if (!params) { @@ -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 */