- add test for crash when detaching request from pool in callbacks
[m6w6/ext-http] / http.c
diff --git a/http.c b/http.c
index 874528ed0221d96c0429655de979a23daea2d3e9..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)
@@ -188,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;
 }