diff options
author | Zeev Suraski <zeev@php.net> | 2000-09-02 18:03:58 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2000-09-02 18:03:58 +0000 |
commit | cf8e389799ff213d6eadfee8839b1aaa5ebe32f8 (patch) | |
tree | ac8d9bbfdabdc0fadb62d6e44973f6604a047cc5 /main/php_output.h | |
parent | 77b55ad07dc17e812f158e2183d44fb32f9e4b7d (diff) | |
download | php-git-cf8e389799ff213d6eadfee8839b1aaa5ebe32f8.tar.gz |
@- Added support for an optional output handler function for output
@ buffering. This enables transparent rendering of XML through XSL,
@ transparent compression, etc. (Zeev)
Diffstat (limited to 'main/php_output.h')
-rw-r--r-- | main/php_output.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/php_output.h b/main/php_output.h index cb43c8cb7f..7d22698796 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 void php_start_ob_buffer(void); +PHPAPI int php_start_ob_buffer(zval *output_handler); 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); @@ -50,6 +50,7 @@ typedef struct _php_ob_buffer { uint size; uint text_length; int block_size; + zval *output_handler; } php_ob_buffer; typedef struct _php_output_globals { @@ -61,6 +62,7 @@ typedef struct _php_output_globals { int output_start_lineno; zend_stack ob_buffers; int nesting_level; + zend_bool lock; } php_output_globals; |