@@ -82,8 +82,8 @@ ZEND_GET_MODULE(libxml)
8282static PHP_MINIT_FUNCTION (libxml );
8383static PHP_RINIT_FUNCTION (libxml );
8484static PHP_MSHUTDOWN_FUNCTION (libxml );
85- static PHP_RSHUTDOWN_FUNCTION (libxml );
8685static PHP_MINFO_FUNCTION (libxml );
86+ static int php_libxml_post_deactivate ();
8787
8888/* }}} */
8989
@@ -129,13 +129,13 @@ zend_module_entry libxml_module_entry = {
129129 PHP_MINIT (libxml ), /* extension-wide startup function */
130130 PHP_MSHUTDOWN (libxml ), /* extension-wide shutdown function */
131131 PHP_RINIT (libxml ), /* per-request startup function */
132- PHP_RSHUTDOWN ( libxml ), /* per-request shutdown function */
132+ NULL , /* per-request shutdown function */
133133 PHP_MINFO (libxml ), /* information function */
134134 NO_VERSION_YET ,
135135 PHP_MODULE_GLOBALS (libxml ), /* globals descriptor */
136136 PHP_GINIT (libxml ), /* globals ctor */
137137 NULL , /* globals dtor */
138- NULL , /* post deactivate */
138+ php_libxml_post_deactivate , /* post deactivate */
139139 STANDARD_MODULE_PROPERTIES_EX
140140};
141141
@@ -655,9 +655,9 @@ static PHP_MSHUTDOWN_FUNCTION(libxml)
655655 return SUCCESS ;
656656}
657657
658-
659- static PHP_RSHUTDOWN_FUNCTION (libxml )
658+ static int php_libxml_post_deactivate ()
660659{
660+ TSRMLS_FETCH ();
661661 /* reset libxml generic error handling */
662662 xmlSetGenericErrorFunc (NULL , NULL );
663663 xmlSetStructuredErrorFunc (NULL , NULL );
0 commit comments