summaryrefslogtreecommitdiff
path: root/ext/domxml/php_domxml.c
diff options
context:
space:
mode:
authorUwe Steinmann <steinm@php.net>2001-04-09 11:53:06 +0000
committerUwe Steinmann <steinm@php.net>2001-04-09 11:53:06 +0000
commit7ee542a524b997f628cd65b7d2fa0dc376bb19de (patch)
tree0b72e978d60fc34b50d2024ea765cb1e90255175 /ext/domxml/php_domxml.c
parent846d6b1536995d057326cfaf3a8b19d5f8ed311a (diff)
downloadphp-git-7ee542a524b997f628cd65b7d2fa0dc376bb19de.tar.gz
- added domxml_version() to retrieve version of libxml
Diffstat (limited to 'ext/domxml/php_domxml.c')
-rw-r--r--ext/domxml/php_domxml.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c
index ad4e95d265..faa0855789 100644
--- a/ext/domxml/php_domxml.c
+++ b/ext/domxml/php_domxml.c
@@ -71,6 +71,7 @@ static int node_attributes(zval **attributes, xmlNode *nodep);
static int node_children(zval **children, xmlNode *nodep);
static zend_function_entry domxml_functions[] = {
+ PHP_FE(domxml_version, NULL)
PHP_FE(xmldoc, NULL)
PHP_FE(xmldocfile, NULL)
PHP_FE(xmltree, NULL)
@@ -2483,6 +2484,15 @@ PHP_FUNCTION(xptr_eval) {
/* }}} */
#endif /* LIBXML_XPTR_ENABLED */
+/* {{{ proto string domxml_version()
+ Dumps document into string */
+PHP_FUNCTION(domxml_version)
+{
+
+ RETURN_STRING(LIBXML_DOTTED_VERSION, 1);
+}
+/* }}} */
+
#endif /* HAVE_DOMXML */
/*
* Local variables: