diff options
Diffstat (limited to 'ext/dom')
31 files changed, 66 insertions, 8 deletions
diff --git a/ext/dom/attr.c b/ext/dom/attr.c index fb6531abd7..6483a41647 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 b0c957f70a..00a65481db 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 bfc1b9232e..67de2645a8 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 5b36ae89cd..c982e0692e 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 6e92d10633..eea8b03b88 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 1dcf4b7576..97d0618503 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 5b1108ae48..cd6af0d076 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 10d06ceab7..be24ce9fd6 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 e5923d91b7..0fc3cd0a85 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 4a82ad5853..b07a47af2c 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 b2a4abfcb0..377a7bc8fa 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 6eb11863cb..c039f72eb0 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 44141a479e..ec53f0b17d 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 4389fcae94..6f1d86608a 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 8c33855b6c..1981549d3d 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 e00409c708..db9783448f 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 4f4ba9d641..8e658e1f70 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 84ad9423e5..30401d738f 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 9e0efe39cf..780be4b0d1 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 6963fae710..ada109ad80 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 53e6e013a3..bb32183019 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 951a75c97f..ba20404124 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 0ba0def556..bcaee1f93e 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 754eb835e8..93dc3d5653 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 fd62a925c2..de02f9cfee 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 004bfbf5aa..b6d98cc997 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 5aa951d52f..208a395ce7 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 4995eb6d87..980c7c594d 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 d6b9a6e7e6..dadaa2f703 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 740f00cdc5..82d98fb7c9 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 2302733260..21427211d4 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 |