summaryrefslogtreecommitdiff
path: root/ext/xsl/php_xsl.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/xsl/php_xsl.c')
-rw-r--r--ext/xsl/php_xsl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/xsl/php_xsl.c b/ext/xsl/php_xsl.c
index 44908be596..ff62618ff8 100644
--- a/ext/xsl/php_xsl.c
+++ b/ext/xsl/php_xsl.c
@@ -285,6 +285,7 @@ PHP_MSHUTDOWN_FUNCTION(xsl)
*/
PHP_RINIT_FUNCTION(xsl)
{
+ xsltSetGenericErrorFunc(NULL, php_libxml_error_handler);
return SUCCESS;
}
/* }}} */
@@ -294,6 +295,7 @@ PHP_RINIT_FUNCTION(xsl)
*/
PHP_RSHUTDOWN_FUNCTION(xsl)
{
+ xsltSetGenericErrorFunc(NULL, NULL);
return SUCCESS;
}
/* }}} */