diff --git a/ext/sablot/php_sablot.h b/ext/sablot/php_sablot.h index fff7ddab6c7..e4dabd2c8f8 100644 --- a/ext/sablot/php_sablot.h +++ b/ext/sablot/php_sablot.h @@ -34,9 +34,11 @@ extern zend_module_entry sablot_module_entry; /* Module functions */ PHP_MINIT_FUNCTION(sablot); -PHP_MSHUTDOWN_FUNCTION(sablot); PHP_MINFO_FUNCTION(sablot); +/* Request functions */ +PHP_RSHUTDOWN_FUNCTION(sablot); + /* Output transformation functions */ PHP_FUNCTION(xslt_output_begintransform); PHP_FUNCTION(xslt_output_endtransform); diff --git a/ext/sablot/sablot.c b/ext/sablot/sablot.c index 52ff594e91e..c84a0ccdec2 100644 --- a/ext/sablot/sablot.c +++ b/ext/sablot/sablot.c @@ -160,9 +160,9 @@ zend_module_entry sablot_module_entry = { "sablot", sablot_functions, PHP_MINIT(sablot), - PHP_MSHUTDOWN(sablot), - NULL, + NULL, NULL, + PHP_RSHUTDOWN(sablot), PHP_MINFO(sablot), STANDARD_MODULE_PROPERTIES }; @@ -180,15 +180,15 @@ PHP_MINIT_FUNCTION(sablot) return SUCCESS; } -PHP_MSHUTDOWN_FUNCTION(sablot) +PHP_RSHUTDOWN_FUNCTION(sablot) { SABLOTLS_FETCH(); - + if (SABLOTG(processor)) { SablotUnregHandler(SABLOTG(processor), HLR_MESSAGE, NULL, NULL); SablotDestroyProcessor(SABLOTG(processor)); } - + return SUCCESS; }