summaryrefslogtreecommitdiff
path: root/ext/xmlwriter/php_xmlwriter.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2005-02-23 23:02:01 +0000
committerMarcus Boerger <helly@php.net>2005-02-23 23:02:01 +0000
commit03c03f58908c23e21fd6713b0bb576662dbbf266 (patch)
tree6542aceac25e85881ea070548f735edc54241855 /ext/xmlwriter/php_xmlwriter.c
parent3f5e714d7b33f6695f69b043ce0513cbd973926b (diff)
downloadphp-git-03c03f58908c23e21fd6713b0bb576662dbbf266.tar.gz
- Checks for older versions of libxml2
Diffstat (limited to 'ext/xmlwriter/php_xmlwriter.c')
-rw-r--r--ext/xmlwriter/php_xmlwriter.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/xmlwriter/php_xmlwriter.c b/ext/xmlwriter/php_xmlwriter.c
index ccbaeaf7ee..2ab54ce13f 100644
--- a/ext/xmlwriter/php_xmlwriter.c
+++ b/ext/xmlwriter/php_xmlwriter.c
@@ -59,8 +59,12 @@ static zend_function_entry xmlwriter_functions[] = {
PHP_FE(xmlwriter_end_cdata, NULL)
PHP_FE(xmlwriter_write_cdata, NULL)
PHP_FE(xmlwriter_text, NULL)
+#ifdef HAVE_XMLTEXTWRITERSTARTCOMMENT
PHP_FE(xmlwriter_start_document, NULL)
+#endif
+#ifdef HAVE_XMLTEXTWRITERENDCOMMENT
PHP_FE(xmlwriter_end_document, NULL)
+#endif
PHP_FE(xmlwriter_write_comment, NULL)
PHP_FE(xmlwriter_start_dtd, NULL)
PHP_FE(xmlwriter_end_dtd, NULL)
@@ -770,6 +774,7 @@ PHP_FUNCTION(xmlwriter_text)
}
/* }}} */
+#ifdef HAVE_XMLTEXTWRITERSTARTCOMMENT
/* {{{ proto bool xmlwriter_start_comment(resource xmlwriter)
Create start comment - returns FALSE on error */
PHP_FUNCTION(xmlwriter_start_comment)
@@ -796,7 +801,9 @@ PHP_FUNCTION(xmlwriter_start_comment)
RETURN_FALSE;
}
/* }}} */
+#endif /* HAVE_XMLTEXTWRITERSTARTCOMMENT */
+#ifdef HAVE_XMLTEXTWRITERENDCOMMENT
/* {{{ proto bool xmlwriter_end_comment(resource xmlwriter)
Create end comment - returns FALSE on error */
PHP_FUNCTION(xmlwriter_end_comment)
@@ -823,6 +830,7 @@ PHP_FUNCTION(xmlwriter_end_comment)
RETURN_FALSE;
}
/* }}} */
+#endif /* HAVE_XMLTEXTWRITERENDCOMMENT */
/* {{{ proto bool xmlwriter_write_comment(resource xmlwriter, string content)
Write full comment tag - returns FALSE on error */