OG 857 ext/zlib/zlib.c if (OG(ob_nesting_level > 0)) { OG 910 main/main.c && (OG(php_body_write)==php_default_output_func || OG(php_body_write)==php_ub_body_write_no_header || OG(php_body_write)==php_ub_body_write) OG 60 main/output.c OG(php_body_write) = php_default_output_func; OG 61 main/output.c OG(php_header_write) = php_default_output_func; OG 62 main/output.c OG(implicit_flush) = 0; OG 63 main/output.c OG(output_start_filename) = NULL; OG 64 main/output.c OG(output_start_lineno) = 0; OG 86 main/output.c OG(php_body_write) = php_ub_body_write; OG 87 main/output.c OG(php_header_write) = sapi_module.ub_write; OG 88 main/output.c OG(ob_nesting_level) = 0; OG 89 main/output.c OG(ob_lock) = 0; OG 90 main/output.c OG(disable_output) = 0; OG 91 main/output.c OG(output_start_filename) = NULL; OG 92 main/output.c OG(output_start_lineno) = 0; OG 101 main/output.c OG(disable_output) = !status; OG 119 main/output.c return OG(php_body_write)(str, str_length TSRMLS_CC); OG 127 main/output.c if (OG(disable_output)) { OG 130 main/output.c return OG(php_header_write)(str, str_length TSRMLS_CC); OG 141 main/output.c if (OG(ob_lock)) { OG 143 main/output.c OG(php_body_write) = php_ub_body_write_no_header; OG 145 main/output.c OG(php_body_write) = php_ub_body_write; OG 147 main/output.c OG(ob_nesting_level) = 0; OG 196 main/output.c if (OG(ob_nesting_level)==0) { OG 200 main/output.c if (!OG(active_ob_buffer).status & PHP_OUTPUT_HANDLER_START) { OG 214 main/output.c fprintf(fp, "NestLevel: %d ObStatus: %d HandlerName: %s\n", OG(ob_nesting_level), status, OG(active_ob_buffer).handler_name); OG 219 main/output.c if (OG(active_ob_buffer).internal_output_handler) { OG 220 main/output.c final_buffer = OG(active_ob_buffer).internal_output_handler_buffer; OG 221 main/output.c final_buffer_length = OG(active_ob_buffer).internal_output_handler_buffer_size; OG 222 main/output.c OG(active_ob_buffer).internal_output_handler(OG(active_ob_buffer).buffer, OG(active_ob_buffer).text_length, &final_buffer, &final_buffer_length, status TSRMLS_CC); OG 223 main/output.c } else if (OG(active_ob_buffer).output_handler) { OG 229 main/output.c ZVAL_STRINGL(orig_buffer, OG(active_ob_buffer).buffer, OG(active_ob_buffer).text_length, 1); OG 238 main/output.c OG(ob_lock) = 1; OG 240 main/output.c if (call_user_function_ex(CG(function_table), NULL, OG(active_ob_buffer).output_handler, &alternate_buffer, 2, params, 1, NULL TSRMLS_CC)==SUCCESS) { OG 247 main/output.c OG(ob_lock) = 0; OG 249 main/output.c zval_ptr_dtor(&OG(active_ob_buffer).output_handler); OG 260 main/output.c final_buffer = OG(active_ob_buffer).buffer; OG 261 main/output.c final_buffer_length = OG(active_ob_buffer).text_length; OG 264 main/output.c if (OG(ob_nesting_level)==1) { /* end buffering */ OG 266 main/output.c OG(php_body_write) = php_ub_body_write_no_header; OG 268 main/output.c OG(php_body_write) = php_ub_body_write; OG 272 main/output.c to_be_destroyed_buffer = OG(active_ob_buffer).buffer; OG 273 main/output.c to_be_destroyed_handler_name = OG(active_ob_buffer).handler_name; OG 274 main/output.c if (OG(active_ob_buffer).internal_output_handler OG 275 main/output.c && (final_buffer != OG(active_ob_buffer).internal_output_handler_buffer) OG 276 main/output.c && (final_buffer != OG(active_ob_buffer).buffer)) { OG 281 main/output.c if (OG(active_ob_buffer).internal_output_handler) { OG 282 main/output.c to_be_destroyed_handled_output[1] = OG(active_ob_buffer).internal_output_handler_buffer; OG 285 main/output.c if (OG(ob_nesting_level)>1) { /* restore previous buffer */ OG 286 main/output.c zend_stack_top(&OG(ob_buffers), (void **) &prev_ob_buffer_p); OG 287 main/output.c orig_ob_buffer = OG(active_ob_buffer); OG 288 main/output.c OG(active_ob_buffer) = *prev_ob_buffer_p; OG 289 main/output.c zend_stack_del_top(&OG(ob_buffers)); OG 290 main/output.c if (!just_flush && OG(ob_nesting_level)==2) { /* destroy the stack */ OG 291 main/output.c zend_stack_destroy(&OG(ob_buffers)); OG 294 main/output.c OG(ob_nesting_level)--; OG 300 main/output.c OG(php_body_write)(final_buffer, final_buffer_length TSRMLS_CC); OG 305 main/output.c zend_stack_push(&OG(ob_buffers), &OG(active_ob_buffer), sizeof(php_ob_buffer)); OG 306 main/output.c OG(active_ob_buffer) = orig_ob_buffer; OG 308 main/output.c OG(ob_nesting_level)++; OG 321 main/output.c OG(active_ob_buffer).text_length = 0; OG 322 main/output.c OG(active_ob_buffer).status |= PHP_OUTPUT_HANDLER_START; OG 323 main/output.c OG(php_body_write) = php_b_body_write; OG 338 main/output.c while (OG(ob_nesting_level)!=0) { OG 348 main/output.c OG(implicit_flush)=1; OG 356 main/output.c OG(implicit_flush)=0; OG 364 main/output.c if (OG(ob_nesting_level)==0 || OG(active_ob_buffer).internal_output_handler || strcmp(OG(active_ob_buffer).handler_name, OB_DEFAULT_HANDLER_NAME)) { OG 368 main/output.c OG(active_ob_buffer).internal_output_handler = internal_output_handler; OG 369 main/output.c OG(active_ob_buffer).internal_output_handler_buffer = (char *) emalloc(buffer_size); OG 370 main/output.c OG(active_ob_buffer).internal_output_handler_buffer_size = buffer_size; OG 371 main/output.c if (OG(active_ob_buffer).handler_name) { OG 372 main/output.c efree(OG(active_ob_buffer).handler_name); OG 374 main/output.c OG(active_ob_buffer).handler_name = estrdup(handler_name); OG 375 main/output.c OG(active_ob_buffer).erase = erase; OG 387 main/output.c uint new_len = OG(active_ob_buffer).text_length + text_length; OG 389 main/output.c if (OG(active_ob_buffer).size < new_len) { OG 390 main/output.c uint buf_size = OG(active_ob_buffer).size; OG 392 main/output.c buf_size += OG(active_ob_buffer).block_size; OG 395 main/output.c OG(active_ob_buffer).buffer = (char *) erealloc(OG(active_ob_buffer).buffer, buf_size+1); OG 396 main/output.c OG(active_ob_buffer).size = buf_size; OG 398 main/output.c OG(active_ob_buffer).text_length = new_len; OG 438 main/output.c if (OG(ob_nesting_level)>0) { OG 444 main/output.c if (OG(ob_nesting_level)==1) { /* initialize stack */ OG 445 main/output.c zend_stack_init(&OG(ob_buffers)); OG 447 main/output.c zend_stack_push(&OG(ob_buffers), &OG(active_ob_buffer), sizeof(php_ob_buffer)); OG 449 main/output.c OG(ob_nesting_level)++; OG 450 main/output.c OG(active_ob_buffer) = tmp_buf; OG 451 main/output.c OG(php_body_write) = php_b_body_write; OG 558 main/output.c if (OG(ob_nesting_level)) { OG 559 main/output.c if (OG(ob_nesting_level)>1) { OG 560 main/output.c zend_stack_apply_with_argument(&OG(ob_buffers), ZEND_STACK_APPLY_BOTTOMUP, (int (*)(void *element, void *)) php_ob_list_each, return_value); OG 562 main/output.c php_ob_list_each(&OG(active_ob_buffer), return_value); OG 587 main/output.c if (OG(ob_nesting_level)) { OG 588 main/output.c if (!strcmp(OG(active_ob_buffer).handler_name, handler_name)) { OG 591 main/output.c if (OG(ob_nesting_level)>1) { OG 592 main/output.c zend_stack_apply_with_argument(&OG(ob_buffers), ZEND_STACK_APPLY_BOTTOMUP, (int (*)(void *element, void *)) php_ob_handler_used_each, &tmp); OG 606 main/output.c original_ob_text_length=OG(active_ob_buffer).text_length; OG 609 main/output.c target = OG(active_ob_buffer).buffer+original_ob_text_length; OG 614 main/output.c if (OG(active_ob_buffer).chunk_size OG 615 main/output.c && OG(active_ob_buffer).text_length >= OG(active_ob_buffer).chunk_size) { OG 632 main/output.c p = OG(ob_buffer)+OG(ob_text_length); OG 633 main/output.c start = OG(ob_buffer); OG 638 main/output.c memcpy(OG(ob_buffer), text, text_length); OG 639 main/output.c OG(ob_buffer)[OG(active_ob_buffer).text_length]=0; OG 648 main/output.c if (OG(ob_nesting_level)==0) { OG 651 main/output.c ZVAL_STRINGL(p, OG(active_ob_buffer).buffer, OG(active_ob_buffer).text_length, 1); OG 660 main/output.c if (OG(ob_nesting_level) == 0) { OG 663 main/output.c ZVAL_LONG(p, OG(active_ob_buffer).text_length); OG 686 main/output.c if (OG(disable_output)) { OG 690 main/output.c result = OG(php_header_write)(str, str_length TSRMLS_CC); OG 692 main/output.c if (OG(implicit_flush)) { OG 715 main/output.c OG(output_start_filename) = zend_get_compiled_filename(TSRMLS_C); OG 716 main/output.c OG(output_start_lineno) = zend_get_compiled_lineno(TSRMLS_C); OG 718 main/output.c OG(output_start_filename) = zend_get_executed_filename(TSRMLS_C); OG 719 main/output.c OG(output_start_lineno) = zend_get_executed_lineno(TSRMLS_C); OG 722 main/output.c OG(php_body_write) = php_ub_body_write_no_header; OG 765 main/output.c if (!OG(ob_nesting_level)) { OG 784 main/output.c if (!OG(ob_nesting_level)) { OG 789 main/output.c if (!OG(active_ob_buffer).status && !OG(active_ob_buffer).erase) { OG 790 main/output.c php_error_docref("ref.outcontrol" TSRMLS_CC, E_NOTICE, "failed to delete buffer %s.", OG(active_ob_buffer).handler_name); OG 807 main/output.c if (!OG(ob_nesting_level)) { OG 811 main/output.c if (OG(ob_nesting_level) && !OG(active_ob_buffer).status && !OG(active_ob_buffer).erase) { OG 812 main/output.c php_error_docref("ref.outcontrol" TSRMLS_CC, E_NOTICE, "failed to delete buffer %s.", OG(active_ob_buffer).handler_name); OG 829 main/output.c if (!OG(ob_nesting_level)) { OG 833 main/output.c if (OG(ob_nesting_level) && !OG(active_ob_buffer).status && !OG(active_ob_buffer).erase) { OG 834 main/output.c php_error_docref("ref.outcontrol" TSRMLS_CC, E_NOTICE, "failed to delete buffer %s.", OG(active_ob_buffer).handler_name); OG 856 main/output.c if (!OG(ob_nesting_level)) { OG 860 main/output.c if (OG(ob_nesting_level) && !OG(active_ob_buffer).status && !OG(active_ob_buffer).erase) { OG 861 main/output.c php_error_docref("ref.outcontrol" TSRMLS_CC, E_NOTICE, "failed to delete buffer %s.", OG(active_ob_buffer).handler_name); OG 881 main/output.c if (!OG(ob_nesting_level)) { OG 885 main/output.c if (OG(ob_nesting_level) && !OG(active_ob_buffer).status && !OG(active_ob_buffer).erase) { OG 886 main/output.c php_error_docref("ref.outcontrol" TSRMLS_CC, E_NOTICE, "failed to delete buffer %s.", OG(active_ob_buffer).handler_name); OG 916 main/output.c RETURN_LONG (OG(ob_nesting_level)); OG 977 main/output.c if (OG(ob_nesting_level)>1) { OG 978 main/output.c zend_stack_apply_with_argument(&OG(ob_buffers), ZEND_STACK_APPLY_BOTTOMUP, (int (*)(void *elem, void *))php_ob_buffer_status, return_value); OG 980 main/output.c if (OG(ob_nesting_level)>0 && php_ob_buffer_status(&OG(active_ob_buffer), return_value)==FAILURE) { OG 983 main/output.c } else if (OG(ob_nesting_level)>0) { OG 984 main/output.c add_assoc_long(return_value, "level", OG(ob_nesting_level)); OG 985 main/output.c if (OG(active_ob_buffer).internal_output_handler) { OG 990 main/output.c add_assoc_long(return_value, "status", OG(active_ob_buffer).status); OG 991 main/output.c add_assoc_string(return_value, "name", OG(active_ob_buffer).handler_name, 1); OG 992 main/output.c add_assoc_bool(return_value, "del", OG(active_ob_buffer).erase); OG 1033 main/output.c return OG(output_start_filename); OG 1042 main/output.c return OG(output_start_lineno);