diff options
author | Christian Stocker <chregu@php.net> | 2003-11-21 12:21:35 +0000 |
---|---|---|
committer | Christian Stocker <chregu@php.net> | 2003-11-21 12:21:35 +0000 |
commit | 44ae81871bff86524758b38e7fe326750158695e (patch) | |
tree | bc8dedeb5f81d5fe50d363e4d77d2b6fa49a443d /ext/xsl | |
parent | 44a03df9266d4e011e0d8501a8e5f511a44034b5 (diff) | |
download | php-git-44ae81871bff86524758b38e7fe326750158695e.tar.gz |
- Added $proc->hasExsltSupport()
Diffstat (limited to 'ext/xsl')
-rw-r--r-- | ext/xsl/xsl_fe.h | 2 | ||||
-rw-r--r-- | ext/xsl/xsltprocessor.c | 14 |
2 files changed, 15 insertions, 1 deletions
diff --git a/ext/xsl/xsl_fe.h b/ext/xsl/xsl_fe.h index 8c7c3a44c4..7d91776338 100644 --- a/ext/xsl/xsl_fe.h +++ b/ext/xsl/xsl_fe.h @@ -31,5 +31,5 @@ PHP_FUNCTION(xsl_xsltprocessor_transform_to_xml); PHP_FUNCTION(xsl_xsltprocessor_set_parameter); PHP_FUNCTION(xsl_xsltprocessor_get_parameter); PHP_FUNCTION(xsl_xsltprocessor_remove_parameter); - +PHP_FUNCTION(xsl_xsltprocessor_has_exslt_support); #endif diff --git a/ext/xsl/xsltprocessor.c b/ext/xsl/xsltprocessor.c index d5924d9d8b..c08bf9524a 100644 --- a/ext/xsl/xsltprocessor.c +++ b/ext/xsl/xsltprocessor.c @@ -42,6 +42,7 @@ zend_function_entry php_xsl_xsltprocessor_class_functions[] = { PHP_FALIAS(setParameter, xsl_xsltprocessor_set_parameter, NULL) PHP_FALIAS(getParameter, xsl_xsltprocessor_get_parameter, NULL) PHP_FALIAS(removeParameter, xsl_xsltprocessor_remove_parameter, NULL) + PHP_FALIAS(hasExsltSupport, xsl_xsltprocessor_has_exslt_support, NULL) {NULL, NULL, NULL} }; @@ -415,3 +416,16 @@ PHP_FUNCTION(xsl_xsltprocessor_remove_parameter) } } /* }}} end xsl_xsltprocessor_remove_parameter */ + +/* {{{ proto xsl_xsltprocessor_has_exslt_support(); +*/ +PHP_FUNCTION(xsl_xsltprocessor_has_exslt_support) +{ +#if HAVE_XSL_EXSLT + RETURN_TRUE; +#else + RETURN_FALSE; +#endif +} +/* }}} end xsl_xsltprocessor_has_exslt_support(); */ + |