diff options
author | Rob Richards <rrichards@php.net> | 2004-09-08 16:54:17 +0000 |
---|---|---|
committer | Rob Richards <rrichards@php.net> | 2004-09-08 16:54:17 +0000 |
commit | da5ff5d9f1ca9ec9bdd16b6a367c6de533b83bf8 (patch) | |
tree | 538b2896c654e297a17076247b96793e4b61c861 /ext/xsl/php_xsl.c | |
parent | ccb99d0a1e3e2240ad803436c34fd055feeb59cc (diff) | |
download | php-git-da5ff5d9f1ca9ec9bdd16b6a367c6de533b83bf8.tar.gz |
fix issue with multiple xsl objects using registerPHPfunctions
- also fixes threading issue
Diffstat (limited to 'ext/xsl/php_xsl.c')
-rw-r--r-- | ext/xsl/php_xsl.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/xsl/php_xsl.c b/ext/xsl/php_xsl.c index 70c8419012..904739a265 100644 --- a/ext/xsl/php_xsl.c +++ b/ext/xsl/php_xsl.c @@ -140,6 +140,13 @@ PHP_MINIT_FUNCTION(xsl) exsltRegisterAll(); #endif + xsltRegisterExtModuleFunction ((const xmlChar *) "functionString", + (const xmlChar *) "http://php.net/xsl", + xsl_ext_function_string_php); + xsltRegisterExtModuleFunction ((const xmlChar *) "function", + (const xmlChar *) "http://php.net/xsl", + xsl_ext_function_object_php); + REGISTER_LONG_CONSTANT("XSL_CLONE_AUTO", 0, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("XSL_CLONE_NEVER", -1, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("XSL_CLONE_ALWAYS", 1, CONST_CS | CONST_PERSISTENT); @@ -226,6 +233,12 @@ PHP_MSHUTDOWN_FUNCTION(xsl) /* uncomment this line if you have INI entries UNREGISTER_INI_ENTRIES(); */ + + xsltUnregisterExtModuleFunction ((const xmlChar *) "functionString", + (const xmlChar *) "http://php.net/xsl"); + xsltUnregisterExtModuleFunction ((const xmlChar *) "function", + (const xmlChar *) "http://php.net/xsl"); + xsltCleanupGlobals(); return SUCCESS; |