]> granicus.if.org Git - php/commitdiff
- added domxml_version() to retrieve version of libxml
authorUwe Steinmann <steinm@php.net>
Mon, 9 Apr 2001 11:53:06 +0000 (11:53 +0000)
committerUwe Steinmann <steinm@php.net>
Mon, 9 Apr 2001 11:53:06 +0000 (11:53 +0000)
ext/domxml/php_domxml.c
ext/domxml/php_domxml.h

index ad4e95d265a7f2f556eb80be3b19c217bfbaf389..faa0855789a58003fcac68908d8dc97a51d5512d 100644 (file)
@@ -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:
index 874b525711263bb4307fee3c874329a6b37d3fda..d318230919aace8a8a3e9b439c3be26bd0514358 100644 (file)
@@ -37,6 +37,7 @@ extern zend_module_entry domxml_module_entry;
 extern PHP_MINIT_FUNCTION(domxml);
 extern PHP_RINIT_FUNCTION(domxml);
 extern PHP_MINFO_FUNCTION(domxml);
+PHP_FUNCTION(domxml_version);
 PHP_FUNCTION(xmldoc);
 PHP_FUNCTION(xmldocfile);
 PHP_FUNCTION(xmltree);