summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorRob Richards <rrichards@php.net>2005-02-23 11:25:32 (GMT)
committerRob Richards <rrichards@php.net>2005-02-23 11:25:32 (GMT)
commit69660235640b1de5cb659e9bac3dd1f911f7c8ae (patch)
tree4ff48656a8347594914779d626cfbd9afdc2d9ce /ext
parentdb3fdce304a9ba026f355fb3d03e9d2eb45cda5d (diff)
downloadphp-69660235640b1de5cb659e9bac3dd1f911f7c8ae.tar.gz
fix libxml versions for comments
Diffstat (limited to 'ext')
-rw-r--r--ext/xmlwriter/php_xmlwriter.c4
-rw-r--r--ext/xmlwriter/php_xmlwriter.h9
2 files changed, 6 insertions, 7 deletions
diff --git a/ext/xmlwriter/php_xmlwriter.c b/ext/xmlwriter/php_xmlwriter.c
index 0ff36c0..ccbaeaf 100644
--- a/ext/xmlwriter/php_xmlwriter.c
+++ b/ext/xmlwriter/php_xmlwriter.c
@@ -37,14 +37,14 @@ static zend_function_entry xmlwriter_functions[] = {
PHP_FE(xmlwriter_set_indent, NULL)
PHP_FE(xmlwriter_set_indent_string, NULL)
#endif
-#if LIBXML_VERSION >= 20616
+#if LIBXML_VERSION >= 20607
PHP_FE(xmlwriter_start_comment, NULL)
PHP_FE(xmlwriter_end_comment, NULL)
#endif
PHP_FE(xmlwriter_start_attribute, NULL)
PHP_FE(xmlwriter_end_attribute, NULL)
PHP_FE(xmlwriter_write_attribute, NULL)
-#if LIBXML_VERSION >= 20617
+#if LIBXML_VERSION > 20617
PHP_FE(xmlwriter_start_attribute_ns,NULL)
#endif
PHP_FE(xmlwriter_start_element, NULL)
diff --git a/ext/xmlwriter/php_xmlwriter.h b/ext/xmlwriter/php_xmlwriter.h
index 57a09c5..a38997c 100644
--- a/ext/xmlwriter/php_xmlwriter.h
+++ b/ext/xmlwriter/php_xmlwriter.h
@@ -51,7 +51,7 @@ PHP_FUNCTION(xmlwriter_start_attribute);
PHP_FUNCTION(xmlwriter_end_attribute);
PHP_FUNCTION(xmlwriter_start_attribute_ns);
PHP_FUNCTION(xmlwriter_write_attribute);
-#if LIBXML_VERSION >= 20617
+#if LIBXML_VERSION > 20617
PHP_FUNCTION(xmlwriter_write_attribute_ns);
#endif
PHP_FUNCTION(xmlwriter_start_element);
@@ -68,12 +68,11 @@ PHP_FUNCTION(xmlwriter_write_cdata);
PHP_FUNCTION(xmlwriter_text);
PHP_FUNCTION(xmlwriter_start_document);
PHP_FUNCTION(xmlwriter_end_document);
-#if LIBXML_VERSION >= 20616
-PHP_FUNCTION(xmlwriter_write_comment);
+#if LIBXML_VERSION >= 20607
PHP_FUNCTION(xmlwriter_start_comment);
-#endif
PHP_FUNCTION(xmlwriter_end_comment);
-
+#endif
+PHP_FUNCTION(xmlwriter_write_comment);
PHP_FUNCTION(xmlwriter_start_dtd);
PHP_FUNCTION(xmlwriter_end_dtd);
PHP_FUNCTION(xmlwriter_write_dtd);