* use 4k cs
authorMichael Wallner <mike@php.net>
Wed, 16 Feb 2005 19:33:46 +0000 (19:33 +0000)
committerMichael Wallner <mike@php.net>
Wed, 16 Feb 2005 19:33:46 +0000 (19:33 +0000)
http.c

diff --git a/http.c b/http.c
index 535a5aebe9a0dada0bdea5882a1819a8e68c4ae5..608586c5df337cf56bee79ea2414d3d7e56b55d6 100644 (file)
--- a/http.c
+++ b/http.c
@@ -457,7 +457,7 @@ PHP_FUNCTION(http_cache_etag)
 
        /* if no etag is given and we didn't already start ob_etaghandler -- start it */
        if (!HTTP_G(etag_started)) {
-               RETURN_BOOL(HTTP_G(etag_started) = (SUCCESS == http_start_ob_handler(_http_ob_etaghandler, "ob_etaghandler", 0, 1)));
+               RETURN_BOOL(HTTP_G(etag_started) = (SUCCESS == http_start_ob_handler(_http_ob_etaghandler, "ob_etaghandler", 4096, 1)));
        }
        RETURN_TRUE;
 }
@@ -472,11 +472,11 @@ PHP_FUNCTION(ob_httpetaghandler)
        char *data;
        int data_len;
        long mode;
-       
+
        if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sl", &data, &data_len, &mode)) {
                RETURN_FALSE;
        }
-       
+
        if (mode & PHP_OUTPUT_HANDLER_START) {
                if (HTTP_G(etag_started)) {
                        php_error_docref(NULL TSRMLS_CC, E_WARNING, "ob_etaghandler can only be used once");
@@ -489,7 +489,7 @@ PHP_FUNCTION(ob_httpetaghandler)
                http_send_header("Cache-Control: private, must-revalidate, max-age=0");
                HTTP_G(etag_started) = 1;
        }
-       
+
        Z_TYPE_P(return_value) = IS_STRING;
        http_ob_etaghandler(data, data_len, &Z_STRVAL_P(return_value), &Z_STRLEN_P(return_value), mode);
 }