diff options
-rw-r--r-- | main/output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/output.c b/main/output.c index 2ced9c3461..d7294b6e25 100644 --- a/main/output.c +++ b/main/output.c @@ -432,10 +432,10 @@ static int php_ob_init_named(uint initial_size, uint block_size, char *handler_n } zend_stack_push(&OG(ob_buffers), &OG(active_ob_buffer), sizeof(php_ob_buffer)); } + OG(active_ob_buffer).buffer = (char *) emalloc(initial_size+1); OG(ob_nesting_level)++; OG(active_ob_buffer).block_size = block_size; OG(active_ob_buffer).size = initial_size; - OG(active_ob_buffer).buffer = (char *) emalloc(initial_size+1); OG(active_ob_buffer).text_length = 0; OG(active_ob_buffer).output_handler = output_handler; OG(active_ob_buffer).chunk_size = chunk_size; |