mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
@- Added support for an optional output handler function for output
@ buffering. This enables transparent rendering of XML through XSL, @ transparent compression, etc. (Zeev)
This commit is contained in:
parent
77b55ad07d
commit
cf8e389799
5 changed files with 155 additions and 45 deletions
|
@ -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;
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue