diff options
-rw-r--r-- | ext/xmlwriter/php_xmlwriter.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/ext/xmlwriter/php_xmlwriter.c b/ext/xmlwriter/php_xmlwriter.c index 16545fd653..5c04edb646 100644 --- a/ext/xmlwriter/php_xmlwriter.c +++ b/ext/xmlwriter/php_xmlwriter.c @@ -28,10 +28,8 @@ #include "php_xmlwriter.h" #include "ext/standard/php_string.h" -#if LIBXML_VERSION >= 20605 static PHP_FUNCTION(xmlwriter_set_indent); static PHP_FUNCTION(xmlwriter_set_indent_string); -#endif static PHP_FUNCTION(xmlwriter_start_attribute); static PHP_FUNCTION(xmlwriter_end_attribute); static PHP_FUNCTION(xmlwriter_write_attribute); @@ -55,10 +53,8 @@ static PHP_FUNCTION(xmlwriter_text); static PHP_FUNCTION(xmlwriter_write_raw); static PHP_FUNCTION(xmlwriter_start_document); static PHP_FUNCTION(xmlwriter_end_document); -#if LIBXML_VERSION >= 20607 static PHP_FUNCTION(xmlwriter_start_comment); static PHP_FUNCTION(xmlwriter_end_comment); -#endif static PHP_FUNCTION(xmlwriter_write_comment); static PHP_FUNCTION(xmlwriter_start_dtd); static PHP_FUNCTION(xmlwriter_end_dtd); @@ -66,14 +62,12 @@ static PHP_FUNCTION(xmlwriter_write_dtd); static PHP_FUNCTION(xmlwriter_start_dtd_element); static PHP_FUNCTION(xmlwriter_end_dtd_element); static PHP_FUNCTION(xmlwriter_write_dtd_element); -#if LIBXML_VERSION > 20608 static PHP_FUNCTION(xmlwriter_start_dtd_attlist); static PHP_FUNCTION(xmlwriter_end_dtd_attlist); static PHP_FUNCTION(xmlwriter_write_dtd_attlist); static PHP_FUNCTION(xmlwriter_start_dtd_entity); static PHP_FUNCTION(xmlwriter_end_dtd_entity); static PHP_FUNCTION(xmlwriter_write_dtd_entity); -#endif static PHP_FUNCTION(xmlwriter_open_uri); static PHP_FUNCTION(xmlwriter_open_memory); static PHP_FUNCTION(xmlwriter_output_memory); @@ -462,14 +456,10 @@ ZEND_END_ARG_INFO() static const zend_function_entry xmlwriter_functions[] = { PHP_FE(xmlwriter_open_uri, arginfo_xmlwriter_open_uri) PHP_FE(xmlwriter_open_memory, arginfo_xmlwriter_void) -#if LIBXML_VERSION >= 20605 PHP_FE(xmlwriter_set_indent, arginfo_xmlwriter_set_indent) PHP_FE(xmlwriter_set_indent_string, arginfo_xmlwriter_set_indent_string) -#endif -#if LIBXML_VERSION >= 20607 PHP_FE(xmlwriter_start_comment, arginfo_xmlwriter_resource) PHP_FE(xmlwriter_end_comment, arginfo_xmlwriter_resource) -#endif PHP_FE(xmlwriter_start_attribute, arginfo_xmlwriter_start_attribute) PHP_FE(xmlwriter_end_attribute, arginfo_xmlwriter_resource) PHP_FE(xmlwriter_write_attribute, arginfo_xmlwriter_write_attribute) @@ -500,14 +490,12 @@ static const zend_function_entry xmlwriter_functions[] = { PHP_FE(xmlwriter_start_dtd_element, arginfo_xmlwriter_start_dtd_element) PHP_FE(xmlwriter_end_dtd_element, arginfo_xmlwriter_resource) PHP_FE(xmlwriter_write_dtd_element, arginfo_xmlwriter_write_dtd_element) -#if LIBXML_VERSION > 20608 PHP_FE(xmlwriter_start_dtd_attlist, arginfo_xmlwriter_start_dtd_attlist) PHP_FE(xmlwriter_end_dtd_attlist, arginfo_xmlwriter_resource) PHP_FE(xmlwriter_write_dtd_attlist, arginfo_xmlwriter_write_dtd_attlist) PHP_FE(xmlwriter_start_dtd_entity, arginfo_xmlwriter_start_dtd_entity) PHP_FE(xmlwriter_end_dtd_entity, arginfo_xmlwriter_resource) PHP_FE(xmlwriter_write_dtd_entity, arginfo_xmlwriter_write_dtd_entity) -#endif PHP_FE(xmlwriter_output_memory, arginfo_xmlwriter_output_memory) PHP_FE(xmlwriter_flush, arginfo_xmlwriter_flush) PHP_FE_END @@ -518,14 +506,10 @@ static const zend_function_entry xmlwriter_functions[] = { static const zend_function_entry xmlwriter_class_functions[] = { PHP_ME_MAPPING(openUri, xmlwriter_open_uri, arginfo_xmlwriter_open_uri, 0) PHP_ME_MAPPING(openMemory, xmlwriter_open_memory, arginfo_xmlwriter_void, 0) -#if LIBXML_VERSION >= 20605 PHP_ME_MAPPING(setIndent, xmlwriter_set_indent, arginfo_xmlwriter_method_set_indent, 0) PHP_ME_MAPPING(setIndentString, xmlwriter_set_indent_string, arginfo_xmlwriter_method_set_indent_string, 0) -#endif -#if LIBXML_VERSION >= 20607 PHP_ME_MAPPING(startComment, xmlwriter_start_comment, arginfo_xmlwriter_void, 0) PHP_ME_MAPPING(endComment, xmlwriter_end_comment, arginfo_xmlwriter_void, 0) -#endif PHP_ME_MAPPING(startAttribute, xmlwriter_start_attribute, arginfo_xmlwriter_method_start_attribute, 0) PHP_ME_MAPPING(endAttribute, xmlwriter_end_attribute, arginfo_xmlwriter_void, 0) PHP_ME_MAPPING(writeAttribute, xmlwriter_write_attribute, arginfo_xmlwriter_method_write_attribute, 0) @@ -556,14 +540,12 @@ static const zend_function_entry xmlwriter_class_functions[] = { PHP_ME_MAPPING(startDtdElement, xmlwriter_start_dtd_element,arginfo_xmlwriter_method_start_dtd_element, 0) PHP_ME_MAPPING(endDtdElement, xmlwriter_end_dtd_element, arginfo_xmlwriter_void, 0) PHP_ME_MAPPING(writeDtdElement, xmlwriter_write_dtd_element, arginfo_xmlwriter_method_write_dtd_element, 0) -#if LIBXML_VERSION > 20608 PHP_ME_MAPPING(startDtdAttlist, xmlwriter_start_dtd_attlist, arginfo_xmlwriter_method_start_dtd_attlist, 0) PHP_ME_MAPPING(endDtdAttlist, xmlwriter_end_dtd_attlist, arginfo_xmlwriter_void, 0) PHP_ME_MAPPING(writeDtdAttlist, xmlwriter_write_dtd_attlist, arginfo_xmlwriter_method_write_dtd_attlist, 0) PHP_ME_MAPPING(startDtdEntity, xmlwriter_start_dtd_entity, arginfo_xmlwriter_method_start_dtd_entity, 0) PHP_ME_MAPPING(endDtdEntity, xmlwriter_end_dtd_entity, arginfo_xmlwriter_void, 0) PHP_ME_MAPPING(writeDtdEntity, xmlwriter_write_dtd_entity, arginfo_xmlwriter_method_write_dtd_entity, 0) -#endif PHP_ME_MAPPING(outputMemory, xmlwriter_output_memory, arginfo_xmlwriter_method_output_memory, 0) PHP_ME_MAPPING(flush, xmlwriter_flush, arginfo_xmlwriter_method_flush, 0) PHP_FE_END @@ -763,7 +745,6 @@ static void php_xmlwriter_end(INTERNAL_FUNCTION_PARAMETERS, xmlwriter_read_int_t RETURN_FALSE; } -#if LIBXML_VERSION >= 20605 /* {{{ proto bool xmlwriter_set_indent(resource xmlwriter, bool indent) Toggle indentation on/off - returns FALSE on error */ static PHP_FUNCTION(xmlwriter_set_indent) @@ -811,8 +792,6 @@ static PHP_FUNCTION(xmlwriter_set_indent_string) } /* }}} */ -#endif - /* {{{ proto bool xmlwriter_start_attribute(resource xmlwriter, string name) Create start attribute - returns FALSE on error */ static PHP_FUNCTION(xmlwriter_start_attribute) @@ -1265,7 +1244,6 @@ static PHP_FUNCTION(xmlwriter_text) } /* }}} */ -#if LIBXML_VERSION >= 20607 /* {{{ proto bool xmlwriter_start_comment(resource xmlwriter) Create start comment - returns FALSE on error */ static PHP_FUNCTION(xmlwriter_start_comment) @@ -1307,8 +1285,6 @@ static PHP_FUNCTION(xmlwriter_end_comment) php_xmlwriter_end(INTERNAL_FUNCTION_PARAM_PASSTHRU, xmlTextWriterEndComment); } /* }}} */ -#endif /* LIBXML_VERSION >= 20607 */ - /* {{{ proto bool xmlwriter_write_comment(resource xmlwriter, string content) Write full comment tag - returns FALSE on error */ @@ -1512,7 +1488,6 @@ static PHP_FUNCTION(xmlwriter_write_dtd_element) } /* }}} */ -#if LIBXML_VERSION > 20608 /* {{{ proto bool xmlwriter_start_dtd_attlist(resource xmlwriter, string name) Create start DTD AttList - returns FALSE on error */ static PHP_FUNCTION(xmlwriter_start_dtd_attlist) @@ -1670,7 +1645,6 @@ static PHP_FUNCTION(xmlwriter_write_dtd_entity) RETURN_FALSE; } /* }}} */ -#endif /* {{{ proto resource xmlwriter_open_uri(string source) Create new xmlwriter using source uri for output */ |