Lines Matching refs:active_ob_buffer
200 if (!OG(active_ob_buffer).status & PHP_OUTPUT_HANDLER_START) { in php_end_ob_buffer()
214 … ObStatus: %d HandlerName: %s\n", OG(ob_nesting_level), status, OG(active_ob_buffer).handler_name… in php_end_ob_buffer()
219 if (OG(active_ob_buffer).internal_output_handler) { in php_end_ob_buffer()
220 final_buffer = OG(active_ob_buffer).internal_output_handler_buffer; in php_end_ob_buffer()
221 final_buffer_length = OG(active_ob_buffer).internal_output_handler_buffer_size; in php_end_ob_buffer()
222 …OG(active_ob_buffer).internal_output_handler(OG(active_ob_buffer).buffer, OG(active_ob_buffer).tex… in php_end_ob_buffer()
223 } else if (OG(active_ob_buffer).output_handler) { in php_end_ob_buffer()
240 ZVAL_STRINGL(orig_buffer, OG(active_ob_buffer).buffer, OG(active_ob_buffer).text_length, 1); in php_end_ob_buffer()
249 …if (call_user_function_ex(CG(function_table), NULL, OG(active_ob_buffer).output_handler, &alternat… in php_end_ob_buffer()
258 zval_ptr_dtor(&OG(active_ob_buffer).output_handler); in php_end_ob_buffer()
265 final_buffer = OG(active_ob_buffer).buffer; in php_end_ob_buffer()
266 final_buffer_length = OG(active_ob_buffer).text_length; in php_end_ob_buffer()
277 to_be_destroyed_buffer = OG(active_ob_buffer).buffer; in php_end_ob_buffer()
278 to_be_destroyed_handler_name = OG(active_ob_buffer).handler_name; in php_end_ob_buffer()
279 if (OG(active_ob_buffer).internal_output_handler in php_end_ob_buffer()
280 && (final_buffer != OG(active_ob_buffer).internal_output_handler_buffer) in php_end_ob_buffer()
281 && (final_buffer != OG(active_ob_buffer).buffer)) { in php_end_ob_buffer()
286 if (OG(active_ob_buffer).internal_output_handler) { in php_end_ob_buffer()
287 to_be_destroyed_handled_output[1] = OG(active_ob_buffer).internal_output_handler_buffer; in php_end_ob_buffer()
292 orig_ob_buffer = OG(active_ob_buffer); in php_end_ob_buffer()
293 OG(active_ob_buffer) = *prev_ob_buffer_p; in php_end_ob_buffer()
310 zend_stack_push(&OG(ob_buffers), &OG(active_ob_buffer), sizeof(php_ob_buffer)); in php_end_ob_buffer()
311 OG(active_ob_buffer) = orig_ob_buffer; in php_end_ob_buffer()
326 OG(active_ob_buffer).text_length = 0; in php_end_ob_buffer()
327 OG(active_ob_buffer).status |= PHP_OUTPUT_HANDLER_START; in php_end_ob_buffer()
385 …if (OG(ob_nesting_level) == 0 || OG(active_ob_buffer).internal_output_handler || strcmp(OG(active_… in php_ob_set_internal_handler()
389 OG(active_ob_buffer).internal_output_handler = internal_output_handler; in php_ob_set_internal_handler()
390 OG(active_ob_buffer).internal_output_handler_buffer = (char *) emalloc(buffer_size); in php_ob_set_internal_handler()
391 OG(active_ob_buffer).internal_output_handler_buffer_size = buffer_size; in php_ob_set_internal_handler()
392 if (OG(active_ob_buffer).handler_name) { in php_ob_set_internal_handler()
393 efree(OG(active_ob_buffer).handler_name); in php_ob_set_internal_handler()
395 OG(active_ob_buffer).handler_name = estrdup(handler_name); in php_ob_set_internal_handler()
396 OG(active_ob_buffer).erase = erase; in php_ob_set_internal_handler()
408 uint new_len = OG(active_ob_buffer).text_length + text_length; in php_ob_allocate()
410 if (OG(active_ob_buffer).size < new_len) { in php_ob_allocate()
411 uint buf_size = OG(active_ob_buffer).size; in php_ob_allocate()
413 buf_size += OG(active_ob_buffer).block_size; in php_ob_allocate()
416 OG(active_ob_buffer).buffer = (char *) erealloc(OG(active_ob_buffer).buffer, buf_size+1); in php_ob_allocate()
417 OG(active_ob_buffer).size = buf_size; in php_ob_allocate()
419 OG(active_ob_buffer).text_length = new_len; in php_ob_allocate()
467 zend_stack_push(&OG(ob_buffers), &OG(active_ob_buffer), sizeof(php_ob_buffer)); in php_ob_init_named()
470 OG(active_ob_buffer) = tmp_buf; in php_ob_init_named()
594 if (!strcmp(OG(active_ob_buffer).handler_name, handler_name)) { in php_ob_handler_used()
612 original_ob_text_length=OG(active_ob_buffer).text_length; in php_ob_append()
615 target = OG(active_ob_buffer).buffer+original_ob_text_length; in php_ob_append()
620 if (OG(active_ob_buffer).chunk_size in php_ob_append()
621 && OG(active_ob_buffer).text_length >= OG(active_ob_buffer).chunk_size) { in php_ob_append()
645 OG(ob_buffer)[OG(active_ob_buffer).text_length]=0;
656 ZVAL_STRINGL(p, OG(active_ob_buffer).buffer, OG(active_ob_buffer).text_length, 1); in php_ob_get_buffer()
668 ZVAL_LONG(p, OG(active_ob_buffer).text_length); in php_ob_get_length()
803 if (!OG(active_ob_buffer).status && !OG(active_ob_buffer).erase) { in PHP_FUNCTION()
804 …ef.outcontrol" TSRMLS_CC, E_NOTICE, "failed to flush buffer %s", OG(active_ob_buffer).handler_name… in PHP_FUNCTION()
826 if (!OG(active_ob_buffer).status && !OG(active_ob_buffer).erase) { in PHP_FUNCTION()
827 …f.outcontrol" TSRMLS_CC, E_NOTICE, "failed to delete buffer %s", OG(active_ob_buffer).handler_name… in PHP_FUNCTION()
849 if (OG(ob_nesting_level) && !OG(active_ob_buffer).status && !OG(active_ob_buffer).erase) { in PHP_FUNCTION()
850 …f.outcontrol" TSRMLS_CC, E_NOTICE, "failed to delete buffer %s", OG(active_ob_buffer).handler_name… in PHP_FUNCTION()
872 if (OG(ob_nesting_level) && !OG(active_ob_buffer).status && !OG(active_ob_buffer).erase) { in PHP_FUNCTION()
873 …f.outcontrol" TSRMLS_CC, E_NOTICE, "failed to delete buffer %s", OG(active_ob_buffer).handler_name… in PHP_FUNCTION()
900 if (OG(ob_nesting_level) && !OG(active_ob_buffer).status && !OG(active_ob_buffer).erase) { in PHP_FUNCTION()
901 …f.outcontrol" TSRMLS_CC, E_NOTICE, "failed to delete buffer %s", OG(active_ob_buffer).handler_name… in PHP_FUNCTION()
927 if (OG(ob_nesting_level) && !OG(active_ob_buffer).status && !OG(active_ob_buffer).erase) { in PHP_FUNCTION()
928 …f.outcontrol" TSRMLS_CC, E_NOTICE, "failed to delete buffer %s", OG(active_ob_buffer).handler_name… in PHP_FUNCTION()
991 php_ob_list_each(&OG(active_ob_buffer), return_value); in PHP_FUNCTION()
1012 …if (OG(ob_nesting_level) > 0 && php_ob_buffer_status(&OG(active_ob_buffer), return_value) == FAILU… in PHP_FUNCTION()
1017 if (OG(active_ob_buffer).internal_output_handler) { in PHP_FUNCTION()
1022 add_assoc_long(return_value, "status", OG(active_ob_buffer).status); in PHP_FUNCTION()
1023 add_assoc_string(return_value, "name", OG(active_ob_buffer).handler_name, 1); in PHP_FUNCTION()
1024 add_assoc_bool(return_value, "del", OG(active_ob_buffer).erase); in PHP_FUNCTION()