to_be_destroyed_buffer = OG(active_ob_buffer).buffer;
if (!just_flush) {
+ if (OG(active_ob_buffer).internal_output_handler
+ && (internal_output_handler_buffer != OG(active_ob_buffer).internal_output_handler_buffer)) {
+ efree(internal_output_handler_buffer);
+ }
if (OG(nesting_level)>1) { /* restore previous buffer */
php_ob_buffer *ob_buffer_p;
OG(active_ob_buffer).status |= PHP_OUTPUT_HANDLER_START;
OG(php_body_write) = php_b_body_write;
}
- if (OG(active_ob_buffer).internal_output_handler
- && (internal_output_handler_buffer != OG(active_ob_buffer).internal_output_handler_buffer)) {
- efree(internal_output_handler_buffer);
- }
}
#include "php.h"
-typedef void (*php_output_handler_func_t)(char *output, uint output_len, char **handled_output, int status);
+typedef void (*php_output_handler_func_t)(char *output, uint output_len, char **handled_output, int mode);
PHPAPI void php_output_startup(void);
void php_output_register_constants(void);
to_be_destroyed_buffer = OG(active_ob_buffer).buffer;
if (!just_flush) {
+ if (OG(active_ob_buffer).internal_output_handler
+ && (internal_output_handler_buffer != OG(active_ob_buffer).internal_output_handler_buffer)) {
+ efree(internal_output_handler_buffer);
+ }
if (OG(nesting_level)>1) { /* restore previous buffer */
php_ob_buffer *ob_buffer_p;
OG(active_ob_buffer).status |= PHP_OUTPUT_HANDLER_START;
OG(php_body_write) = php_b_body_write;
}
- if (OG(active_ob_buffer).internal_output_handler
- && (internal_output_handler_buffer != OG(active_ob_buffer).internal_output_handler_buffer)) {
- efree(internal_output_handler_buffer);
- }
}
#include "php.h"
-typedef void (*php_output_handler_func_t)(char *output, uint output_len, char **handled_output, int status);
+typedef void (*php_output_handler_func_t)(char *output, uint output_len, char **handled_output, int mode);
PHPAPI void php_output_startup(void);
void php_output_register_constants(void);