From 69660235640b1de5cb659e9bac3dd1f911f7c8ae Mon Sep 17 00:00:00 2001 From: Rob Richards Date: Wed, 23 Feb 2005 11:25:32 +0000 Subject: [PATCH] fix libxml versions for comments --- ext/xmlwriter/php_xmlwriter.c | 4 ++-- ext/xmlwriter/php_xmlwriter.h | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/ext/xmlwriter/php_xmlwriter.c b/ext/xmlwriter/php_xmlwriter.c index 0ff36c0afb..ccbaeaf7ee 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 57a09c5f96..a38997c989 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); -- 2.40.0