ob_end_flush and ob_end_clean do.
@- Added ob_flush and ob_clean functions, which flush and clean an
@ output buffer without destroying the buffer. (Derick)
/* functions from output.c */
PHP_FE(ob_start, NULL)
+ PHP_FE(ob_flush, NULL)
+ PHP_FE(ob_clean, NULL)
PHP_FE(ob_end_flush, NULL)
PHP_FE(ob_end_clean, NULL)
PHP_FE(ob_get_length, NULL)
}
/* }}} */
+/* {{{ proto void ob_flush(void)
+ Flush (send) the output buffer */
+PHP_FUNCTION(ob_flush)
+{
+ php_end_ob_buffer(1, 1 TSRMLS_CC);
+}
+/* }}} */
+
+/* {{{ proto void ob_clean(void)
+ Clean (erase) the output buffer */
+PHP_FUNCTION(ob_clean)
+{
+ php_end_ob_buffer(0, 1 TSRMLS_CC);
+}
+/* }}} */
+
/* {{{ proto void ob_end_flush(void)
Flush (send) the output buffer, and turn off output buffering */
PHP_FUNCTION(ob_end_flush)
PHPAPI void php_ob_set_internal_handler(php_output_handler_func_t internal_output_handler, uint buffer_size TSRMLS_DC);
PHP_FUNCTION(ob_start);
+PHP_FUNCTION(ob_flush);
+PHP_FUNCTION(ob_clean);
PHP_FUNCTION(ob_end_flush);
PHP_FUNCTION(ob_end_clean);
PHP_FUNCTION(ob_get_contents);