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()
175 if ((OG(flags) & PHP_OUTPUT_ACTIVATED)) { in php_output_deactivate()
178 OG(flags) ^= PHP_OUTPUT_ACTIVATED; in php_output_deactivate()
179 OG(active) = NULL; in php_output_deactivate()
180 OG(running) = NULL; in php_output_deactivate()
183 if (OG(handlers).elements) { in php_output_deactivate()
184 while (SUCCESS == zend_stack_top(&OG(handlers), (void *) &handler)) { in php_output_deactivate()
186 zend_stack_del_top(&OG(handlers)); in php_output_deactivate()
188 zend_stack_destroy(&OG(handlers)); in php_output_deactivate()
218 OG(flags) = (OG(flags) & ~0xf) | (status & 0xf); in php_output_set_status()
227 OG(flags) in php_output_get_status()
228 | (OG(active) ? PHP_OUTPUT_ACTIVE : 0) in php_output_get_status()
229 | (OG(running)? PHP_OUTPUT_LOCKED : 0) in php_output_get_status()
245 if (OG(flags) & PHP_OUTPUT_DISABLED) { in php_output_write_unbuffered()
248 if (OG(flags) & PHP_OUTPUT_ACTIVATED) { in php_output_write_unbuffered()
266 if (OG(flags) & PHP_OUTPUT_DISABLED) { in php_output_write()
269 if (OG(flags) & PHP_OUTPUT_ACTIVATED) { in php_output_write()
283 if (OG(active) && (OG(active)->flags & PHP_OUTPUT_HANDLER_FLUSHABLE)) { in php_output_flush()
285 php_output_handler_op(OG(active), &context); in php_output_flush()
287 zend_stack_del_top(&OG(handlers)); in php_output_flush()
289 zend_stack_push(&OG(handlers), &OG(active), sizeof(php_output_handler *)); in php_output_flush()
302 if (OG(active)) { in php_output_flush_all()
314 if (OG(active) && (OG(active)->flags & PHP_OUTPUT_HANDLER_CLEANABLE)) { in php_output_clean()
316 php_output_handler_op(OG(active), &context); in php_output_clean()
330 if (OG(active)) { in php_output_clean_all()
332 …zend_stack_apply_with_argument(&OG(handlers), ZEND_STACK_APPLY_TOPDOWN, php_output_stack_apply_cle… in php_output_clean_all()
351 while (OG(active) && php_output_stack_pop(PHP_OUTPUT_POP_FORCE TSRMLS_CC)); in php_output_end_all()
370 while (OG(active)) { in php_output_discard_all()
380 return OG(active) ? zend_stack_count(&OG(handlers)) : 0; in php_output_get_level()
388 if (OG(active)) { in php_output_get_contents()
389 ZVAL_STRINGL(p, OG(active)->buffer.data, OG(active)->buffer.used, 1); in php_output_get_contents()
401 if (OG(active)) { in php_output_get_length()
402 ZVAL_LONG(p, OG(active)->buffer.used); in php_output_get_length()
415 return OG(active); in php_output_get_active_handler()
577 …if (FAILURE == (handler->level = zend_stack_push(&OG(handlers), &handler, sizeof(php_output_handle… in php_output_handler_start()
580 OG(active) = handler; in php_output_handler_start()
593 handlers = (php_output_handler ***) zend_stack_base(&OG(handlers)); in php_output_handler_started()
689 if (OG(running)) { in php_output_handler_hook()
692 *(void ***) arg = &OG(running)->opaq; in php_output_handler_hook()
695 *(int *) arg = OG(running)->flags; in php_output_handler_hook()
698 *(int *) arg = OG(running)->level; in php_output_handler_hook()
701 OG(running)->flags &= ~(PHP_OUTPUT_HANDLER_REMOVABLE|PHP_OUTPUT_HANDLER_CLEANABLE); in php_output_handler_hook()
704 OG(running)->flags |= PHP_OUTPUT_HANDLER_DISABLED; in php_output_handler_hook()
748 OG(flags) |= PHP_OUTPUT_IMPLICITFLUSH; in php_output_set_implicit_flush()
750 OG(flags) &= ~PHP_OUTPUT_IMPLICITFLUSH; in php_output_set_implicit_flush()
759 return OG(output_start_filename); in php_output_get_start_filename()
767 return OG(output_start_lineno); in php_output_get_start_lineno()
776 if (op && OG(active) && OG(running)) { in php_output_lock_error()
898 OG(flags) |= PHP_OUTPUT_WRITTEN; in php_output_handler_append()
914 return OG(running) ? 1 : 0; in php_output_handler_append()
966 OG(running) = handler; in php_output_handler_op()
1016 OG(running) = NULL; in php_output_handler_op()
1071 if (OG(active) && (obh_cnt = zend_stack_count(&OG(handlers)))) { in php_output_op()
1076 …zend_stack_apply_with_argument(&OG(handlers), ZEND_STACK_APPLY_TOPDOWN, php_output_stack_apply_op,… in php_output_op()
1077 …} else if ((SUCCESS == zend_stack_top(&OG(handlers), (void *) &active)) && (!((*active)->flags & P… in php_output_op()
1090 if (!(OG(flags) & PHP_OUTPUT_DISABLED)) { in php_output_op()
1096 if (OG(flags) & PHP_OUTPUT_IMPLICITFLUSH) { in php_output_op()
1100 OG(flags) |= PHP_OUTPUT_SENT; in php_output_op()
1219 php_output_handler **current, *orphan = OG(active); in php_output_stack_pop()
1248 zend_stack_del_top(&OG(handlers)); in php_output_stack_pop()
1249 if (SUCCESS == zend_stack_top(&OG(handlers), (void *) &current)) { in php_output_stack_pop()
1250 OG(active) = *current; in php_output_stack_pop()
1252 OG(active) = NULL; in php_output_stack_pop()
1349 if (!OG(active)) { in PHP_FUNCTION()
1355 …ontrol" TSRMLS_CC, E_NOTICE, "failed to flush buffer of %s (%d)", OG(active)->name, OG(active)->le… in PHP_FUNCTION()
1370 if (!OG(active)) { in PHP_FUNCTION()
1376 …ntrol" TSRMLS_CC, E_NOTICE, "failed to delete buffer of %s (%d)", OG(active)->name, OG(active)->le… in PHP_FUNCTION()
1391 if (!OG(active)) { in PHP_FUNCTION()
1408 if (!OG(active)) { in PHP_FUNCTION()
1431 …ntrol" TSRMLS_CC, E_NOTICE, "failed to delete buffer of %s (%d)", OG(active)->name, OG(active)->le… in PHP_FUNCTION()
1444 if(!OG(active)) { in PHP_FUNCTION()
1454 …ntrol" TSRMLS_CC, E_NOTICE, "failed to delete buffer of %s (%d)", OG(active)->name, OG(active)->le… in PHP_FUNCTION()
1509 if (!OG(active)) { in PHP_FUNCTION()
1513 …zend_stack_apply_with_argument(&OG(handlers), ZEND_STACK_APPLY_BOTTOMUP, php_output_stack_apply_li… in PHP_FUNCTION()
1529 if (!OG(active)) { in PHP_FUNCTION()
1534 …zend_stack_apply_with_argument(&OG(handlers), ZEND_STACK_APPLY_BOTTOMUP, php_output_stack_apply_st… in PHP_FUNCTION()
1536 php_output_handler_status(OG(active), return_value); in PHP_FUNCTION()