summaryrefslogtreecommitdiff
path: root/main/php_output.h
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-11-23 18:43:18 +0000
committerZeev Suraski <zeev@php.net>2000-11-23 18:43:18 +0000
commit888f376e4cc2c87b0e0c4214e3a5af52f4160b28 (patch)
tree9955eac376d48b53db77128668380d9494117637 /main/php_output.h
parent0af5c36d9402be4fa2952f5e137abd68f26bc503 (diff)
downloadphp-git-888f376e4cc2c87b0e0c4214e3a5af52f4160b28.tar.gz
Very initial work on chunked output buffering. It's really unoptimized at
this time, and it can crash under some circumstances, but that's the concept...
Diffstat (limited to 'main/php_output.h')
-rw-r--r--main/php_output.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/php_output.h b/main/php_output.h
index 7d22698796..7a2154f54c 100644
--- a/main/php_output.h
+++ b/main/php_output.h
@@ -26,7 +26,7 @@
PHPAPI void php_output_startup(void);
PHPAPI int php_body_write(const char *str, uint str_length);
PHPAPI int php_header_write(const char *str, uint str_length);
-PHPAPI int php_start_ob_buffer(zval *output_handler);
+PHPAPI int php_start_ob_buffer(zval *output_handler, int chunk_size);
PHPAPI void php_end_ob_buffer(int send_buffer);
PHPAPI void php_end_ob_buffers(int send_buffer);
PHPAPI int php_ob_get_buffer(pval *p);
@@ -51,6 +51,7 @@ typedef struct _php_ob_buffer {
uint text_length;
int block_size;
zval *output_handler;
+ int chunk_size;
} php_ob_buffer;
typedef struct _php_output_globals {