Lines Matching refs:OG

110 		if (!OG(output_start_filename)) {  in php_output_header()
112 OG(output_start_filename) = zend_get_compiled_filename(TSRMLS_C); in php_output_header()
113 OG(output_start_lineno) = zend_get_compiled_lineno(TSRMLS_C); in php_output_header()
115 OG(output_start_filename) = zend_get_executed_filename(TSRMLS_C); in php_output_header()
116 OG(output_start_lineno) = zend_get_executed_lineno(TSRMLS_C); in php_output_header()
119 …fprintf(stderr, "!!! output started at: %s (%d)\n", OG(output_start_filename), OG(output_start_lin… in php_output_header()
123 OG(flags) |= PHP_OUTPUT_DISABLED; in php_output_header()
162 zend_stack_init(&OG(handlers)); in php_output_activate()
163 OG(flags) |= PHP_OUTPUT_ACTIVATED; in php_output_activate()
177 OG(flags) ^= PHP_OUTPUT_ACTIVATED; in php_output_deactivate()
178 OG(active) = NULL; in php_output_deactivate()
179 OG(running) = NULL; in php_output_deactivate()
182 if (OG(handlers).elements) { in php_output_deactivate()
183 while (SUCCESS == zend_stack_top(&OG(handlers), (void *) &handler)) { in php_output_deactivate()
185 zend_stack_del_top(&OG(handlers)); in php_output_deactivate()
187 zend_stack_destroy(&OG(handlers)); in php_output_deactivate()
217 OG(flags) = (OG(flags) & ~0xf) | (status & 0xf); in php_output_set_status()
226 OG(flags) in php_output_get_status()
227 | (OG(active) ? PHP_OUTPUT_ACTIVE : 0) in php_output_get_status()
228 | (OG(running)? PHP_OUTPUT_LOCKED : 0) in php_output_get_status()
244 if (OG(flags) & PHP_OUTPUT_DISABLED) { in php_output_write_unbuffered()
247 if (OG(flags) & PHP_OUTPUT_ACTIVATED) { in php_output_write_unbuffered()
265 if (OG(flags) & PHP_OUTPUT_DISABLED) { in php_output_write()
268 if (OG(flags) & PHP_OUTPUT_ACTIVATED) { in php_output_write()
282 if (OG(active) && (OG(active)->flags & PHP_OUTPUT_HANDLER_FLUSHABLE)) { in php_output_flush()
284 php_output_handler_op(OG(active), &context); in php_output_flush()
286 zend_stack_del_top(&OG(handlers)); in php_output_flush()
288 zend_stack_push(&OG(handlers), &OG(active), sizeof(php_output_handler *)); in php_output_flush()
301 if (OG(active)) { in php_output_flush_all()
313 if (OG(active) && (OG(active)->flags & PHP_OUTPUT_HANDLER_CLEANABLE)) { in php_output_clean()
315 php_output_handler_op(OG(active), &context); in php_output_clean()
329 if (OG(active)) { in php_output_clean_all()
331 …zend_stack_apply_with_argument(&OG(handlers), ZEND_STACK_APPLY_TOPDOWN, php_output_stack_apply_cle… in php_output_clean_all()
350 while (OG(active) && php_output_stack_pop(PHP_OUTPUT_POP_FORCE TSRMLS_CC)); in php_output_end_all()
369 while (OG(active)) { in php_output_discard_all()
379 return OG(active) ? zend_stack_count(&OG(handlers)) : 0; in php_output_get_level()
387 if (OG(active)) { in php_output_get_contents()
388 ZVAL_STRINGL(p, OG(active)->buffer.data, OG(active)->buffer.used, 1); in php_output_get_contents()
400 if (OG(active)) { in php_output_get_length()
401 ZVAL_LONG(p, OG(active)->buffer.used); in php_output_get_length()
414 return OG(active); in php_output_get_active_handler()
576 …if (FAILURE == (handler->level = zend_stack_push(&OG(handlers), &handler, sizeof(php_output_handle… in php_output_handler_start()
579 OG(active) = handler; in php_output_handler_start()
592 handlers = (php_output_handler ***) zend_stack_base(&OG(handlers)); in php_output_handler_started()
688 if (OG(running)) { in php_output_handler_hook()
691 *(void ***) arg = &OG(running)->opaq; in php_output_handler_hook()
694 *(int *) arg = OG(running)->flags; in php_output_handler_hook()
697 *(int *) arg = OG(running)->level; in php_output_handler_hook()
700 OG(running)->flags &= ~(PHP_OUTPUT_HANDLER_REMOVABLE|PHP_OUTPUT_HANDLER_CLEANABLE); in php_output_handler_hook()
703 OG(running)->flags |= PHP_OUTPUT_HANDLER_DISABLED; in php_output_handler_hook()
747 OG(flags) |= PHP_OUTPUT_IMPLICITFLUSH; in php_output_set_implicit_flush()
749 OG(flags) &= ~PHP_OUTPUT_IMPLICITFLUSH; in php_output_set_implicit_flush()
758 return OG(output_start_filename); in php_output_get_start_filename()
766 return OG(output_start_lineno); in php_output_get_start_lineno()
775 if (op && OG(active) && OG(running)) { in php_output_lock_error()
897 OG(flags) |= PHP_OUTPUT_WRITTEN; in php_output_handler_append()
913 return OG(running) ? 1 : 0; in php_output_handler_append()
965 OG(running) = handler; in php_output_handler_op()
1015 OG(running) = NULL; in php_output_handler_op()
1070 if (OG(active) && (obh_cnt = zend_stack_count(&OG(handlers)))) { in php_output_op()
1075 …zend_stack_apply_with_argument(&OG(handlers), ZEND_STACK_APPLY_TOPDOWN, php_output_stack_apply_op,… in php_output_op()
1076 …} else if ((SUCCESS == zend_stack_top(&OG(handlers), (void *) &active)) && (!((*active)->flags & P… in php_output_op()
1089 if (!(OG(flags) & PHP_OUTPUT_DISABLED)) { in php_output_op()
1095 if (OG(flags) & PHP_OUTPUT_IMPLICITFLUSH) { in php_output_op()
1099 OG(flags) |= PHP_OUTPUT_SENT; in php_output_op()
1218 php_output_handler **current, *orphan = OG(active); in php_output_stack_pop()
1247 zend_stack_del_top(&OG(handlers)); in php_output_stack_pop()
1248 if (SUCCESS == zend_stack_top(&OG(handlers), (void *) &current)) { in php_output_stack_pop()
1249 OG(active) = *current; in php_output_stack_pop()
1251 OG(active) = NULL; in php_output_stack_pop()
1348 if (!OG(active)) { in PHP_FUNCTION()
1354 …ontrol" TSRMLS_CC, E_NOTICE, "failed to flush buffer of %s (%d)", OG(active)->name, OG(active)->le… in PHP_FUNCTION()
1369 if (!OG(active)) { in PHP_FUNCTION()
1375 …ntrol" TSRMLS_CC, E_NOTICE, "failed to delete buffer of %s (%d)", OG(active)->name, OG(active)->le… in PHP_FUNCTION()
1390 if (!OG(active)) { in PHP_FUNCTION()
1407 if (!OG(active)) { in PHP_FUNCTION()
1430 …ntrol" TSRMLS_CC, E_NOTICE, "failed to delete buffer of %s (%d)", OG(active)->name, OG(active)->le… in PHP_FUNCTION()
1443 if(!OG(active)) { in PHP_FUNCTION()
1453 …ntrol" TSRMLS_CC, E_NOTICE, "failed to delete buffer of %s (%d)", OG(active)->name, OG(active)->le… in PHP_FUNCTION()
1508 if (!OG(active)) { in PHP_FUNCTION()
1512 …zend_stack_apply_with_argument(&OG(handlers), ZEND_STACK_APPLY_BOTTOMUP, php_output_stack_apply_li… in PHP_FUNCTION()
1528 if (!OG(active)) { in PHP_FUNCTION()
1533 …zend_stack_apply_with_argument(&OG(handlers), ZEND_STACK_APPLY_BOTTOMUP, php_output_stack_apply_st… in PHP_FUNCTION()
1535 php_output_handler_status(OG(active), return_value); in PHP_FUNCTION()