summaryrefslogtreecommitdiff
path: root/ext/xsl/php_xsl.c
diff options
context:
space:
mode:
authorChristian Stocker <chregu@php.net>2003-11-19 12:07:59 +0000
committerChristian Stocker <chregu@php.net>2003-11-19 12:07:59 +0000
commitb63803a06cb13360051085700fa8523066826441 (patch)
tree7c59bc4d8e669816cd99c2f35dff755b5f20b9ea /ext/xsl/php_xsl.c
parent2fefe6148baf48ae5c7a29514ad61ab6d4f4c993 (diff)
downloadphp-git-b63803a06cb13360051085700fa8523066826441.tar.gz
added exslt support
Diffstat (limited to 'ext/xsl/php_xsl.c')
-rw-r--r--ext/xsl/php_xsl.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/ext/xsl/php_xsl.c b/ext/xsl/php_xsl.c
index 742192b9b2..534ff41cad 100644
--- a/ext/xsl/php_xsl.c
+++ b/ext/xsl/php_xsl.c
@@ -133,6 +133,10 @@ PHP_MINIT_FUNCTION(xsl)
memcpy(&xsl_object_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers));
REGISTER_XSL_CLASS(ce, "xsltprocessor", NULL, php_xsl_xsltprocessor_class_functions, xsl_xsltprocessor_class_entry);
+#if HAVE_XSL_EXSLT
+ exsltRegisterAll();
+#endif
+
return SUCCESS;
}
/* }}} */
@@ -244,12 +248,11 @@ PHP_RSHUTDOWN_FUNCTION(xsl)
PHP_MINFO_FUNCTION(xsl)
{
php_info_print_table_start();
- php_info_print_table_row(2, "XML/XSLT", "enabled");
{
char buffer[128];
int major, minor, subminor;
- php_info_print_table_row(2, "DOM/XSLT", "enabled");
+ php_info_print_table_row(2, "XSL", "enabled");
major = xsltLibxsltVersion/10000;
minor = (xsltLibxsltVersion - major * 10000) / 100;
subminor = (xsltLibxsltVersion - major * 10000 - minor * 100);
@@ -261,6 +264,10 @@ PHP_MINFO_FUNCTION(xsl)
snprintf(buffer, 128, "%d.%d.%d", major, minor, subminor);
php_info_print_table_row(2, "libxslt compiled against libxml Version", buffer);
}
+#if HAVE_XSL_EXSLT
+ php_info_print_table_row(2, "EXSLT", "enabled");
+ php_info_print_table_row(2, "libexslt Version", LIBEXSLT_DOTTED_VERSION);
+#endif
php_info_print_table_end();
/* Remove comments if you have entries in php.ini