diff options
author | Dmitry Stogov <dmitry@php.net> | 2011-12-30 08:50:49 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2011-12-30 08:50:49 +0000 |
commit | f7942c9e63e1d44279664830e8384dfdc1ebd50a (patch) | |
tree | f5d85770282abfb9ca65c2d20a43357cbd97501a | |
parent | 853b48dc30fd11c9875fa2dd8688fc761e26756d (diff) | |
download | php-git-f7942c9e63e1d44279664830e8384dfdc1ebd50a.tar.gz |
Added an API call to return active output handler
-rw-r--r-- | main/output.c | 8 | ||||
-rw-r--r-- | main/php_output.h | 1 |
2 files changed, 9 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 diff --git a/main/php_output.h b/main/php_output.h index da212d8ff6..6eb1e91808 100644 --- a/main/php_output.h +++ b/main/php_output.h @@ -242,6 +242,7 @@ PHPAPI int php_output_handler_reverse_conflict_register(const char *handler_name PHPAPI php_output_handler_alias_ctor_t *php_output_handler_alias(const char *handler_name, size_t handler_name_len TSRMLS_DC); PHPAPI int php_output_handler_alias_register(const char *handler_name, size_t handler_name_len, php_output_handler_alias_ctor_t func TSRMLS_DC); +PHPAPI php_output_handler* php_get_active_output_handler(TSRMLS_D); END_EXTERN_C() |