summaryrefslogtreecommitdiff
path: root/ext/tidy/tidy.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tidy/tidy.c')
-rw-r--r--ext/tidy/tidy.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/ext/tidy/tidy.c b/ext/tidy/tidy.c
index 8d87bb980c..856a8a2f23 100644
--- a/ext/tidy/tidy.c
+++ b/ext/tidy/tidy.c
@@ -228,6 +228,7 @@ static int php_tidy_output_handler(void **nothing, php_output_context *output_co
static PHP_MINIT_FUNCTION(tidy);
static PHP_MSHUTDOWN_FUNCTION(tidy);
static PHP_RINIT_FUNCTION(tidy);
+static PHP_RSHUTDOWN_FUNCTION(tidy);
static PHP_MINFO_FUNCTION(tidy);
ZEND_DECLARE_MODULE_GLOBALS(tidy)
@@ -249,7 +250,7 @@ zend_module_entry tidy_module_entry = {
PHP_MINIT(tidy),
PHP_MSHUTDOWN(tidy),
PHP_RINIT(tidy),
- NULL,
+ PHP_RSHUTDOWN(tidy),
PHP_MINFO(tidy),
PHP_TIDY_VERSION,
PHP_MODULE_GLOBALS(tidy),
@@ -863,6 +864,13 @@ static PHP_RINIT_FUNCTION(tidy)
return SUCCESS;
}
+static PHP_RSHUTDOWN_FUNCTION(tidy)
+{
+ TG(clean_output) = INI_ORIG_BOOL("tidy.clean_output");
+
+ return SUCCESS;
+}
+
static PHP_MSHUTDOWN_FUNCTION(tidy)
{
UNREGISTER_INI_ENTRIES();