- add http_build_cookie
[m6w6/ext-http] / http.c
diff --git a/http.c b/http.c
index 348940b6bad82e654832dd159ade4b6f48aef538..5ae77b4ef3f82c99a5ff6182f0188edaeb4af33e 100644 (file)
--- a/http.c
+++ b/http.c
@@ -93,6 +93,7 @@ zend_function_entry http_functions[] = {
        PHP_FE(http_parse_message, NULL)
        PHP_FE(http_parse_headers, NULL)
        PHP_FE(http_parse_cookie, NULL)
+       PHP_FE(http_build_cookie, NULL)
        PHP_FE(http_parse_params, NULL)
        PHP_FE(http_get_request_headers, NULL)
        PHP_FE(http_get_request_body, NULL)
@@ -107,9 +108,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)
@@ -190,7 +189,7 @@ static inline void _http_globals_init(zend_http_globals *G TSRMLS_DC)
 #else
        G->request.time = time(NULL);
 #endif
-       G->send.buffer_size = HTTP_SENDBUF_SIZE;
+       G->send.buffer_size = 0;
        G->send.not_found_404 = 1;
        G->read_post_data = 0;
 }