summaryrefslogtreecommitdiff
path: root/main/output.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2011-12-30 08:50:49 +0000
committerDmitry Stogov <dmitry@php.net>2011-12-30 08:50:49 +0000
commitf7942c9e63e1d44279664830e8384dfdc1ebd50a (patch)
treef5d85770282abfb9ca65c2d20a43357cbd97501a /main/output.c
parent853b48dc30fd11c9875fa2dd8688fc761e26756d (diff)
downloadphp-git-f7942c9e63e1d44279664830e8384dfdc1ebd50a.tar.gz
Added an API call to return active output handler
Diffstat (limited to 'main/output.c')
-rw-r--r--main/output.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/main/output.c b/main/output.c
index c13014e711..b4ef9b8f6c 100644
--- a/main/output.c
+++ b/main/output.c
@@ -1502,6 +1502,14 @@ PHP_FUNCTION(output_add_rewrite_var)
}
/* }}} */
+/* {{{ php_output_handler* php_get_active_output_handler(TSRMLS_D)
+ * Get active output handler */
+PHPAPI php_output_handler* php_get_active_output_handler(TSRMLS_D)
+{
+ return OG(active);
+}
+/* }}} */
+
/*
* Local variables:
* tab-width: 4