summaryrefslogtreecommitdiff
path: root/main/php_output.h
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2001-03-04 01:09:36 +0000
committerZeev Suraski <zeev@php.net>2001-03-04 01:09:36 +0000
commit0a98aa6adacc8cb9c9fcce5457bd3ee2c9245f6e (patch)
treeb8301728f972ebd01844d60dc87af587798df884 /main/php_output.h
parentce39c56c8ba80229063398d974d7998a1db95287 (diff)
downloadphp-git-0a98aa6adacc8cb9c9fcce5457bd3ee2c9245f6e.tar.gz
Improve chunked output buffering - the output handler now knows at which stage it is
Diffstat (limited to 'main/php_output.h')
-rw-r--r--main/php_output.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/main/php_output.h b/main/php_output.h
index d18736796a..d7d617ba12 100644
--- a/main/php_output.h
+++ b/main/php_output.h
@@ -27,8 +27,8 @@ 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, uint chunk_size);
-PHPAPI void php_end_ob_buffer(int send_buffer);
-PHPAPI void php_end_ob_buffers(int send_buffer);
+PHPAPI void php_end_ob_buffer(zend_bool send_buffer, zend_bool just_flush);
+PHPAPI void php_end_ob_buffers(zend_bool send_buffer);
PHPAPI int php_ob_get_buffer(pval *p);
PHPAPI int php_ob_get_length(pval *p);
PHPAPI void php_start_implicit_flush(void);
@@ -52,6 +52,7 @@ typedef struct _php_ob_buffer {
int block_size;
zval *output_handler;
uint chunk_size;
+ int status;
} php_ob_buffer;
typedef struct _php_output_globals {
@@ -81,5 +82,8 @@ ZEND_API extern int output_globals_id;
ZEND_API extern php_output_globals output_globals;
#endif
+#define PHP_OUTPUT_HANDLER_START (1<<0)
+#define PHP_OUTPUT_HANDLER_CONT (1<<1)
+#define PHP_OUTPUT_HANDLER_END (1<<2)
#endif /* PHP_OUTPUT_H */