summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/dom/attr.c5
-rw-r--r--ext/dom/cdatasection.c3
-rw-r--r--ext/dom/characterdata.c2
-rw-r--r--ext/dom/comment.c2
-rw-r--r--ext/dom/document.c2
-rw-r--r--ext/dom/documentfragment.c2
-rw-r--r--ext/dom/documenttype.c3
-rw-r--r--ext/dom/domconfiguration.c2
-rw-r--r--ext/dom/domerror.c3
-rw-r--r--ext/dom/domerrorhandler.c2
-rw-r--r--ext/dom/domexception.c2
-rw-r--r--ext/dom/domimplementation.c2
-rw-r--r--ext/dom/domimplementationlist.c2
-rw-r--r--ext/dom/domimplementationsource.c2
-rw-r--r--ext/dom/domlocator.c2
-rw-r--r--ext/dom/domstringlist.c2
-rw-r--r--ext/dom/element.c3
-rw-r--r--ext/dom/entity.c3
-rw-r--r--ext/dom/entityreference.c2
-rw-r--r--ext/dom/namednodemap.c2
-rw-r--r--ext/dom/namelist.c2
-rw-r--r--ext/dom/node.c2
-rw-r--r--ext/dom/nodelist.c2
-rw-r--r--ext/dom/notation.c3
-rw-r--r--ext/dom/php_dom.c3
-rw-r--r--ext/dom/processinginstruction.c3
-rw-r--r--ext/dom/string_extend.c2
-rw-r--r--ext/dom/text.c2
-rw-r--r--ext/dom/typeinfo.c3
-rw-r--r--ext/dom/userdatahandler.c2
-rw-r--r--ext/dom/xpath.c2
-rw-r--r--ext/simplexml/simplexml.c4
-rw-r--r--ext/xml/compat.c2
33 files changed, 72 insertions, 8 deletions
diff --git a/ext/dom/attr.c b/ext/dom/attr.c
index fb6531a..6483a41 100644
--- a/ext/dom/attr.c
+++ b/ext/dom/attr.c
@@ -24,6 +24,9 @@
#endif
#include "php.h"
+
+#if HAVE_LIBXML && HAVE_DOM
+
#include "php_dom.h"
@@ -232,3 +235,5 @@ PHP_FUNCTION(dom_attr_is_id)
}
}
/* }}} end dom_attr_is_id */
+
+#endif
diff --git a/ext/dom/cdatasection.c b/ext/dom/cdatasection.c
index b0c957f..00a6548 100644
--- a/ext/dom/cdatasection.c
+++ b/ext/dom/cdatasection.c
@@ -24,6 +24,7 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_DOM
#include "php_dom.h"
@@ -71,3 +72,5 @@ PHP_FUNCTION(dom_cdatasection_cdatasection)
}
}
/* }}} end dom_cdatasection_cdatasection */
+
+#endif
diff --git a/ext/dom/characterdata.c b/ext/dom/characterdata.c
index bfc1b92..67de264 100644
--- a/ext/dom/characterdata.c
+++ b/ext/dom/characterdata.c
@@ -24,6 +24,7 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_DOM
#include "php_dom.h"
@@ -363,3 +364,4 @@ PHP_FUNCTION(dom_characterdata_replace_data)
RETURN_TRUE;
}
/* }}} end dom_characterdata_replace_data */
+#endif
diff --git a/ext/dom/comment.c b/ext/dom/comment.c
index 5b36ae8..c982e06 100644
--- a/ext/dom/comment.c
+++ b/ext/dom/comment.c
@@ -24,6 +24,7 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_DOM
#include "php_dom.h"
@@ -70,3 +71,4 @@ PHP_FUNCTION(dom_comment_comment)
}
}
/* }}} end dom_comment_comment */
+#endif
diff --git a/ext/dom/document.c b/ext/dom/document.c
index 6e92d10..eea8b03 100644
--- a/ext/dom/document.c
+++ b/ext/dom/document.c
@@ -24,6 +24,7 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_DOM
#include "php_dom.h"
typedef struct _idsIterator idsIterator;
@@ -1273,3 +1274,4 @@ PHP_FUNCTION(dom_document_savexml)
}
}
/* }}} end dom_document_savexml */
+#endif
diff --git a/ext/dom/documentfragment.c b/ext/dom/documentfragment.c
index 1dcf4b7..97d0618 100644
--- a/ext/dom/documentfragment.c
+++ b/ext/dom/documentfragment.c
@@ -24,6 +24,7 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_DOM
#include "php_dom.h"
@@ -64,3 +65,4 @@ PHP_FUNCTION(dom_documentfragment_documentfragment)
}
}
/* }}} end dom_documentfragment_documentfragment */
+#endif
diff --git a/ext/dom/documenttype.c b/ext/dom/documenttype.c
index 5b1108a..cd6af0d 100644
--- a/ext/dom/documenttype.c
+++ b/ext/dom/documenttype.c
@@ -24,6 +24,7 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_DOM
#include "php_dom.h"
typedef struct _nodeIterator nodeIterator;
@@ -290,4 +291,4 @@ int dom_documenttype_internal_subset_read(dom_object *obj, zval **retval TSRMLS_
/* }}} */
-
+#endif
diff --git a/ext/dom/domconfiguration.c b/ext/dom/domconfiguration.c
index 10d06ce..be24ce9 100644
--- a/ext/dom/domconfiguration.c
+++ b/ext/dom/domconfiguration.c
@@ -24,6 +24,7 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_DOM
#include "php_dom.h"
@@ -75,3 +76,4 @@ PHP_FUNCTION(dom_domconfiguration_can_set_parameter)
DOM_NOT_IMPLEMENTED();
}
/* }}} end dom_domconfiguration_can_set_parameter */
+#endif
diff --git a/ext/dom/domerror.c b/ext/dom/domerror.c
index e5923d9..0fc3cd0 100644
--- a/ext/dom/domerror.c
+++ b/ext/dom/domerror.c
@@ -24,6 +24,7 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_DOM
#include "php_dom.h"
@@ -134,4 +135,4 @@ int dom_domerror_location_read(dom_object *obj, zval **retval TSRMLS_DC)
/* }}} */
-
+#endif
diff --git a/ext/dom/domerrorhandler.c b/ext/dom/domerrorhandler.c
index 4a82ad5..b07a47a 100644
--- a/ext/dom/domerrorhandler.c
+++ b/ext/dom/domerrorhandler.c
@@ -24,6 +24,7 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_DOM
#include "php_dom.h"
@@ -51,3 +52,4 @@ PHP_FUNCTION(dom_domerrorhandler_handle_error)
DOM_NOT_IMPLEMENTED();
}
/* }}} end dom_domerrorhandler_handle_error */
+#endif
diff --git a/ext/dom/domexception.c b/ext/dom/domexception.c
index b2a4abf..377a7bc 100644
--- a/ext/dom/domexception.c
+++ b/ext/dom/domexception.c
@@ -24,6 +24,7 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_DOM
#include "php_dom.h"
@@ -110,3 +111,4 @@ void php_dom_throw_error(int error_code, zval **retval TSRMLS_DC)
EG(exception) = dom_exception;
}
/* }}} end php_dom_throw_error */
+#endif
diff --git a/ext/dom/domimplementation.c b/ext/dom/domimplementation.c
index 6eb1186..c039f72 100644
--- a/ext/dom/domimplementation.c
+++ b/ext/dom/domimplementation.c
@@ -24,6 +24,7 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_DOM
#include "php_dom.h"
/*
@@ -235,3 +236,4 @@ PHP_FUNCTION(dom_domimplementation_get_feature)
DOM_NOT_IMPLEMENTED();
}
/* }}} end dom_domimplementation_get_feature */
+#endif
diff --git a/ext/dom/domimplementationlist.c b/ext/dom/domimplementationlist.c
index 44141a4..ec53f0b 100644
--- a/ext/dom/domimplementationlist.c
+++ b/ext/dom/domimplementationlist.c
@@ -24,6 +24,7 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_DOM
#include "php_dom.h"
@@ -67,3 +68,4 @@ PHP_FUNCTION(dom_domimplementationlist_item)
DOM_NOT_IMPLEMENTED();
}
/* }}} end dom_domimplementationlist_item */
+#endif
diff --git a/ext/dom/domimplementationsource.c b/ext/dom/domimplementationsource.c
index 4389fca..6f1d866 100644
--- a/ext/dom/domimplementationsource.c
+++ b/ext/dom/domimplementationsource.c
@@ -24,6 +24,7 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_DOM
#include "php_dom.h"
@@ -63,3 +64,4 @@ PHP_FUNCTION(dom_domimplementationsource_get_domimplementations)
DOM_NOT_IMPLEMENTED();
}
/* }}} end dom_domimplementationsource_get_domimplementations */
+#endif
diff --git a/ext/dom/domlocator.c b/ext/dom/domlocator.c
index 8c33855..1981549 100644
--- a/ext/dom/domlocator.c
+++ b/ext/dom/domlocator.c
@@ -24,6 +24,7 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_DOM
#include "php_dom.h"
@@ -119,3 +120,4 @@ int dom_domlocator_uri_read(dom_object *obj, zval **retval TSRMLS_DC)
/* }}} */
+#endif
diff --git a/ext/dom/domstringlist.c b/ext/dom/domstringlist.c
index e00409c..db97834 100644
--- a/ext/dom/domstringlist.c
+++ b/ext/dom/domstringlist.c
@@ -24,6 +24,7 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_DOM
#include "php_dom.h"
@@ -67,3 +68,4 @@ PHP_FUNCTION(dom_domstringlist_item)
DOM_NOT_IMPLEMENTED();
}
/* }}} end dom_domstringlist_item */
+#endif
diff --git a/ext/dom/element.c b/ext/dom/element.c
index 4f4ba9d..8e658e1 100644
--- a/ext/dom/element.c
+++ b/ext/dom/element.c
@@ -24,6 +24,7 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_DOM
#include "php_dom.h"
@@ -834,3 +835,5 @@ PHP_FUNCTION(dom_element_set_id_attribute_node)
DOM_NOT_IMPLEMENTED();
}
/* }}} end dom_element_set_id_attribute_node */
+
+#endif
diff --git a/ext/dom/entity.c b/ext/dom/entity.c
index 84ad942..30401d7 100644
--- a/ext/dom/entity.c
+++ b/ext/dom/entity.c
@@ -24,6 +24,7 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_DOM
#include "php_dom.h"
@@ -179,4 +180,4 @@ int dom_entity_version_write(dom_object *obj, zval *newval TSRMLS_DC)
/* }}} */
-
+#endif
diff --git a/ext/dom/entityreference.c b/ext/dom/entityreference.c
index 9e0efe3..780be4b 100644
--- a/ext/dom/entityreference.c
+++ b/ext/dom/entityreference.c
@@ -24,6 +24,7 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_DOM
#include "php_dom.h"
@@ -76,3 +77,4 @@ PHP_FUNCTION(dom_entityreference_entityreference)
}
/* }}} end dom_entityreference_entityreference */
+#endif
diff --git a/ext/dom/namednodemap.c b/ext/dom/namednodemap.c
index 6963fae..ada109a 100644
--- a/ext/dom/namednodemap.c
+++ b/ext/dom/namednodemap.c
@@ -24,6 +24,7 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_DOM
#include "php_dom.h"
@@ -139,3 +140,4 @@ PHP_FUNCTION(dom_namednodemap_remove_named_item_ns)
DOM_NOT_IMPLEMENTED();
}
/* }}} end dom_namednodemap_remove_named_item_ns */
+#endif
diff --git a/ext/dom/namelist.c b/ext/dom/namelist.c
index 53e6e01..bb32183 100644
--- a/ext/dom/namelist.c
+++ b/ext/dom/namelist.c
@@ -24,6 +24,7 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_DOM
#include "php_dom.h"
@@ -79,3 +80,4 @@ PHP_FUNCTION(dom_namelist_get_namespace_uri)
DOM_NOT_IMPLEMENTED();
}
/* }}} end dom_namelist_get_namespace_uri */
+#endif
diff --git a/ext/dom/node.c b/ext/dom/node.c
index 951a75c..ba20404 100644
--- a/ext/dom/node.c
+++ b/ext/dom/node.c
@@ -24,6 +24,7 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_DOM
#include "php_dom.h"
@@ -1398,3 +1399,4 @@ PHP_FUNCTION(dom_node_get_user_data)
DOM_NOT_IMPLEMENTED();
}
/* }}} end dom_node_get_user_data */
+#endif
diff --git a/ext/dom/nodelist.c b/ext/dom/nodelist.c
index 0ba0def..bcaee1f 100644
--- a/ext/dom/nodelist.c
+++ b/ext/dom/nodelist.c
@@ -24,6 +24,7 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_DOM
#include "php_dom.h"
@@ -67,3 +68,4 @@ PHP_FUNCTION(dom_nodelist_item)
DOM_NOT_IMPLEMENTED();
}
/* }}} end dom_nodelist_item */
+#endif
diff --git a/ext/dom/notation.c b/ext/dom/notation.c
index 754eb83..93dc3d5 100644
--- a/ext/dom/notation.c
+++ b/ext/dom/notation.c
@@ -24,6 +24,7 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_DOM
#include "php_dom.h"
@@ -86,4 +87,4 @@ int dom_notation_system_id_read(dom_object *obj, zval **retval TSRMLS_DC)
/* }}} */
-
+#endif
diff --git a/ext/dom/php_dom.c b/ext/dom/php_dom.c
index fd62a92..de02f9c 100644
--- a/ext/dom/php_dom.c
+++ b/ext/dom/php_dom.c
@@ -25,13 +25,12 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_DOM
#include "ext/standard/php_rand.h"
#include "php_dom.h"
#include "dom_ce.h"
#include "dom_properties.h"
-#if HAVE_DOM
-
#include "ext/standard/info.h"
#define PHP_XPATH 1
#define PHP_XPTR 2
diff --git a/ext/dom/processinginstruction.c b/ext/dom/processinginstruction.c
index 004bfbf..b6d98cc 100644
--- a/ext/dom/processinginstruction.c
+++ b/ext/dom/processinginstruction.c
@@ -24,6 +24,7 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_DOM
#include "php_dom.h"
@@ -135,4 +136,4 @@ int dom_processinginstruction_data_write(dom_object *obj, zval *newval TSRMLS_DC
/* }}} */
-
+#endif
diff --git a/ext/dom/string_extend.c b/ext/dom/string_extend.c
index 5aa951d..208a395 100644
--- a/ext/dom/string_extend.c
+++ b/ext/dom/string_extend.c
@@ -24,6 +24,7 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_DOM
#include "php_dom.h"
@@ -63,3 +64,4 @@ PHP_FUNCTION(dom_string_extend_find_offset32)
DOM_NOT_IMPLEMENTED();
}
/* }}} end dom_string_extend_find_offset32 */
+#endif
diff --git a/ext/dom/text.c b/ext/dom/text.c
index 4995eb6..980c7c5 100644
--- a/ext/dom/text.c
+++ b/ext/dom/text.c
@@ -24,6 +24,7 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_DOM
#include "php_dom.h"
#include "dom_ce.h"
@@ -188,3 +189,4 @@ PHP_FUNCTION(dom_text_replace_whole_text)
DOM_NOT_IMPLEMENTED();
}
/* }}} end dom_text_replace_whole_text */
+#endif
diff --git a/ext/dom/typeinfo.c b/ext/dom/typeinfo.c
index d6b9a6e..dadaa2f 100644
--- a/ext/dom/typeinfo.c
+++ b/ext/dom/typeinfo.c
@@ -24,6 +24,7 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_DOM
#include "php_dom.h"
@@ -70,4 +71,4 @@ int dom_typeinfo_type_namespace_read(dom_object *obj, zval **retval TSRMLS_DC)
/* }}} */
-
+#endif
diff --git a/ext/dom/userdatahandler.c b/ext/dom/userdatahandler.c
index 740f00c..82d98fb 100644
--- a/ext/dom/userdatahandler.c
+++ b/ext/dom/userdatahandler.c
@@ -24,6 +24,7 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_DOM
#include "php_dom.h"
@@ -51,3 +52,4 @@ PHP_FUNCTION(dom_userdatahandler_handle)
DOM_NOT_IMPLEMENTED();
}
/* }}} end dom_userdatahandler_handle */
+#endif
diff --git a/ext/dom/xpath.c b/ext/dom/xpath.c
index 2302733..2142721 100644
--- a/ext/dom/xpath.c
+++ b/ext/dom/xpath.c
@@ -24,6 +24,7 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_DOM
#include "php_dom.h"
@@ -165,3 +166,4 @@ PHP_FUNCTION(dom_xpath_query)
#endif /* LIBXML_XPATH_ENABLED */
/* }}} */
+#endif
diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c
index 2d0e0c2..3f08e2b 100644
--- a/ext/simplexml/simplexml.c
+++ b/ext/simplexml/simplexml.c
@@ -23,6 +23,8 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_SIMPLEXML
+
#include "php_ini.h"
#include "ext/standard/info.h"
#include "php_simplexml.h"
@@ -1071,6 +1073,8 @@ PHP_MINFO_FUNCTION(simplexml)
}
/* }}} */
+#endif
+
/**
* Local Variables:
* c-basic-offset: 4
diff --git a/ext/xml/compat.c b/ext/xml/compat.c
index e8f0cf1..04d33fd 100644
--- a/ext/xml/compat.c
+++ b/ext/xml/compat.c
@@ -17,6 +17,7 @@
*/
#include "php.h"
+#if HAVE_LIBXML && HAVE_XML
#include "expat_compat.h"
#ifdef LIBXML_EXPAT_COMPAT
@@ -555,6 +556,7 @@ XML_ParserFree(XML_Parser parser)
}
#endif /* LIBXML_EXPAT_COMPAT */
+#endif
/**
* Local Variables: