From: Michael Wallner Date: Tue, 8 Feb 2005 18:49:37 +0000 (+0000) Subject: * fixing PHP5 snap build X-Git-Tag: RELEASE_0_3_0~14 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=afb241db56aa66b7a4a47638682eab63a5057e2a;p=m6w6%2Fext-http * fixing PHP5 snap build --- diff --git a/http.c b/http.c index e81deff..2142eab 100644 --- a/http.c +++ b/http.c @@ -30,6 +30,10 @@ #include "php_http_api.h" #if defined(HAVE_CURL) && HAVE_CURL +# ifdef PHP_WIN32 +# include +# include +# endif #include #endif @@ -481,7 +485,7 @@ PHP_FUNCTION(http_redirect) sprintf(RED, "Redirecting to %s.\n", URI, URI); } efree(URI); - + if ((SUCCESS == http_send_header(LOC)) && (SUCCESS == http_send_status((permanent ? 301 : 302)))) { php_body_write(RED, strlen(RED) TSRMLS_CC); RETURN_TRUE;