cvs: php4 /ext/domxml php_domxml.c php_domxml.h
| From: | Uwe Steinmann | Date: | Mon, 09 Apr 2001 11:53:07 +0000 |
| Subject: | cvs: php4 /ext/domxml php_domxml.c php_domxml.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-5047@lists.php.net to get a copy of this message | ||
steinm Mon Apr 9 04:53:07 2001 EDT
Modified files:
/php4/ext/domxml php_domxml.c php_domxml.h
Log:
- added domxml_version() to retrieve version of libxml
Index: php4/ext/domxml/php_domxml.c
diff -u php4/ext/domxml/php_domxml.c:1.35 php4/ext/domxml/php_domxml.c:1.36
--- php4/ext/domxml/php_domxml.c:1.35 Wed Mar 28 16:22:45 2001
+++ php4/ext/domxml/php_domxml.c Mon Apr 9 04:53:06 2001
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_domxml.c,v 1.35 2001/03/29 00:22:45 sniper Exp $ */
+/* $Id: php_domxml.c,v 1.36 2001/04/09 11:53:06 steinm Exp $ */
#include "php.h"
@@ -71,6 +71,7 @@
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)
@@ -2482,6 +2483,15 @@
}
/* }}} */
#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 */
/*
Index: php4/ext/domxml/php_domxml.h
diff -u php4/ext/domxml/php_domxml.h:1.24 php4/ext/domxml/php_domxml.h:1.25
--- php4/ext/domxml/php_domxml.h:1.24 Tue Mar 20 21:45:40 2001
+++ php4/ext/domxml/php_domxml.h Mon Apr 9 04:53:06 2001
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_domxml.h,v 1.24 2001/03/21 05:45:40 steinm Exp $ */
+/* $Id: php_domxml.h,v 1.25 2001/04/09 11:53:06 steinm Exp $ */
#ifndef PHP_DOMXML_H
#define PHP_DOMXML_H
@@ -37,6 +37,7 @@
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);