diff options
Diffstat (limited to 'ext/dom')
32 files changed, 62 insertions, 62 deletions
diff --git a/ext/dom/attr.c b/ext/dom/attr.c index e82c0d9334..e50f009d24 100644 --- a/ext/dom/attr.c +++ b/ext/dom/attr.c @@ -37,7 +37,7 @@ * Since: */ -zend_function_entry php_dom_attr_class_functions[] = { +const zend_function_entry php_dom_attr_class_functions[] = { PHP_FALIAS(isId, dom_attr_is_id, NULL) PHP_ME(domattr, __construct, NULL, ZEND_ACC_PUBLIC) {NULL, NULL, NULL} diff --git a/ext/dom/cdatasection.c b/ext/dom/cdatasection.c index 9931cbff29..eb451e994b 100644 --- a/ext/dom/cdatasection.c +++ b/ext/dom/cdatasection.c @@ -35,7 +35,7 @@ * Since: */ -zend_function_entry php_dom_cdatasection_class_functions[] = { +const zend_function_entry php_dom_cdatasection_class_functions[] = { PHP_ME(domcdatasection, __construct, NULL, ZEND_ACC_PUBLIC) {NULL, NULL, NULL} }; diff --git a/ext/dom/characterdata.c b/ext/dom/characterdata.c index 448e4eb0b6..d40f40aa24 100644 --- a/ext/dom/characterdata.c +++ b/ext/dom/characterdata.c @@ -35,7 +35,7 @@ * Since: */ -zend_function_entry php_dom_characterdata_class_functions[] = { +const zend_function_entry php_dom_characterdata_class_functions[] = { PHP_FALIAS(substringData, dom_characterdata_substring_data, NULL) PHP_FALIAS(appendData, dom_characterdata_append_data, NULL) PHP_FALIAS(insertData, dom_characterdata_insert_data, NULL) diff --git a/ext/dom/comment.c b/ext/dom/comment.c index 4d68ae5a39..a0670428c7 100644 --- a/ext/dom/comment.c +++ b/ext/dom/comment.c @@ -35,7 +35,7 @@ * Since: */ -zend_function_entry php_dom_comment_class_functions[] = { +const zend_function_entry php_dom_comment_class_functions[] = { PHP_ME(domcomment, __construct, NULL, ZEND_ACC_PUBLIC) {NULL, NULL, NULL} }; diff --git a/ext/dom/document.c b/ext/dom/document.c index 30b31a3240..54bb94720d 100644 --- a/ext/dom/document.c +++ b/ext/dom/document.c @@ -50,7 +50,7 @@ struct _idsIterator { * Since: */ -zend_function_entry php_dom_document_class_functions[] = { +const zend_function_entry php_dom_document_class_functions[] = { PHP_FALIAS(createElement, dom_document_create_element, NULL) PHP_FALIAS(createDocumentFragment, dom_document_create_document_fragment, NULL) PHP_FALIAS(createTextNode, dom_document_create_text_node, NULL) diff --git a/ext/dom/documentfragment.c b/ext/dom/documentfragment.c index caca6f9239..10805133d2 100644 --- a/ext/dom/documentfragment.c +++ b/ext/dom/documentfragment.c @@ -35,7 +35,7 @@ * Since: */ -zend_function_entry php_dom_documentfragment_class_functions[] = { +const zend_function_entry php_dom_documentfragment_class_functions[] = { PHP_ME(domdocumentfragment, __construct, NULL, ZEND_ACC_PUBLIC) PHP_ME(domdocumentfragment, appendXML, NULL, ZEND_ACC_PUBLIC) {NULL, NULL, NULL} diff --git a/ext/dom/documenttype.c b/ext/dom/documenttype.c index ffeda243a4..196d4ed343 100644 --- a/ext/dom/documenttype.c +++ b/ext/dom/documenttype.c @@ -34,7 +34,7 @@ * Since: */ -zend_function_entry php_dom_documenttype_class_functions[] = { +const zend_function_entry php_dom_documenttype_class_functions[] = { {NULL, NULL, NULL} }; diff --git a/ext/dom/dom_fe.h b/ext/dom/dom_fe.h index 06dc8c917e..46f298684b 100644 --- a/ext/dom/dom_fe.h +++ b/ext/dom/dom_fe.h @@ -21,36 +21,36 @@ #ifndef DOM_FE_H #define DOM_FE_H -extern zend_function_entry php_dom_domexception_class_functions[]; -extern zend_function_entry php_dom_domstringlist_class_functions[]; -extern zend_function_entry php_dom_namelist_class_functions[]; -extern zend_function_entry php_dom_domimplementationlist_class_functions[]; -extern zend_function_entry php_dom_domimplementationsource_class_functions[]; -extern zend_function_entry php_dom_domimplementation_class_functions[]; -extern zend_function_entry php_dom_documentfragment_class_functions[]; -extern zend_function_entry php_dom_document_class_functions[]; -extern zend_function_entry php_dom_node_class_functions[]; -extern zend_function_entry php_dom_nodelist_class_functions[]; -extern zend_function_entry php_dom_namednodemap_class_functions[]; -extern zend_function_entry php_dom_characterdata_class_functions[]; -extern zend_function_entry php_dom_attr_class_functions[]; -extern zend_function_entry php_dom_element_class_functions[]; -extern zend_function_entry php_dom_text_class_functions[]; -extern zend_function_entry php_dom_comment_class_functions[]; -extern zend_function_entry php_dom_typeinfo_class_functions[]; -extern zend_function_entry php_dom_userdatahandler_class_functions[]; -extern zend_function_entry php_dom_domerror_class_functions[]; -extern zend_function_entry php_dom_domerrorhandler_class_functions[]; -extern zend_function_entry php_dom_domlocator_class_functions[]; -extern zend_function_entry php_dom_domconfiguration_class_functions[]; -extern zend_function_entry php_dom_cdatasection_class_functions[]; -extern zend_function_entry php_dom_documenttype_class_functions[]; -extern zend_function_entry php_dom_notation_class_functions[]; -extern zend_function_entry php_dom_entity_class_functions[]; -extern zend_function_entry php_dom_entityreference_class_functions[]; -extern zend_function_entry php_dom_processinginstruction_class_functions[]; -extern zend_function_entry php_dom_string_extend_class_functions[]; -extern zend_function_entry php_dom_xpath_class_functions[]; +extern const zend_function_entry php_dom_domexception_class_functions[]; +extern const zend_function_entry php_dom_domstringlist_class_functions[]; +extern const zend_function_entry php_dom_namelist_class_functions[]; +extern const zend_function_entry php_dom_domimplementationlist_class_functions[]; +extern const zend_function_entry php_dom_domimplementationsource_class_functions[]; +extern const zend_function_entry php_dom_domimplementation_class_functions[]; +extern const zend_function_entry php_dom_documentfragment_class_functions[]; +extern const zend_function_entry php_dom_document_class_functions[]; +extern const zend_function_entry php_dom_node_class_functions[]; +extern const zend_function_entry php_dom_nodelist_class_functions[]; +extern const zend_function_entry php_dom_namednodemap_class_functions[]; +extern const zend_function_entry php_dom_characterdata_class_functions[]; +extern const zend_function_entry php_dom_attr_class_functions[]; +extern const zend_function_entry php_dom_element_class_functions[]; +extern const zend_function_entry php_dom_text_class_functions[]; +extern const zend_function_entry php_dom_comment_class_functions[]; +extern const zend_function_entry php_dom_typeinfo_class_functions[]; +extern const zend_function_entry php_dom_userdatahandler_class_functions[]; +extern const zend_function_entry php_dom_domerror_class_functions[]; +extern const zend_function_entry php_dom_domerrorhandler_class_functions[]; +extern const zend_function_entry php_dom_domlocator_class_functions[]; +extern const zend_function_entry php_dom_domconfiguration_class_functions[]; +extern const zend_function_entry php_dom_cdatasection_class_functions[]; +extern const zend_function_entry php_dom_documenttype_class_functions[]; +extern const zend_function_entry php_dom_notation_class_functions[]; +extern const zend_function_entry php_dom_entity_class_functions[]; +extern const zend_function_entry php_dom_entityreference_class_functions[]; +extern const zend_function_entry php_dom_processinginstruction_class_functions[]; +extern const zend_function_entry php_dom_string_extend_class_functions[]; +extern const zend_function_entry php_dom_xpath_class_functions[]; /* domexception errors */ typedef enum { diff --git a/ext/dom/domconfiguration.c b/ext/dom/domconfiguration.c index 727cd08629..85d12fb001 100644 --- a/ext/dom/domconfiguration.c +++ b/ext/dom/domconfiguration.c @@ -35,7 +35,7 @@ * Since: DOM Level 3 */ -zend_function_entry php_dom_domconfiguration_class_functions[] = { +const zend_function_entry php_dom_domconfiguration_class_functions[] = { PHP_FALIAS(setParameter, dom_domconfiguration_set_parameter, NULL) PHP_FALIAS(getParameter, dom_domconfiguration_get_parameter, NULL) PHP_FALIAS(canSetParameter, dom_domconfiguration_can_set_parameter, NULL) diff --git a/ext/dom/domerror.c b/ext/dom/domerror.c index 8bce0cda4a..68e3c07c17 100644 --- a/ext/dom/domerror.c +++ b/ext/dom/domerror.c @@ -35,7 +35,7 @@ * Since: DOM Level 3 */ -zend_function_entry php_dom_domerror_class_functions[] = { +const zend_function_entry php_dom_domerror_class_functions[] = { {NULL, NULL, NULL} }; diff --git a/ext/dom/domerrorhandler.c b/ext/dom/domerrorhandler.c index be2594217a..bb7b6a3082 100644 --- a/ext/dom/domerrorhandler.c +++ b/ext/dom/domerrorhandler.c @@ -35,7 +35,7 @@ * Since: DOM Level 3 */ -zend_function_entry php_dom_domerrorhandler_class_functions[] = { +const zend_function_entry php_dom_domerrorhandler_class_functions[] = { PHP_FALIAS(handleError, dom_domerrorhandler_handle_error, NULL) {NULL, NULL, NULL} }; diff --git a/ext/dom/domexception.c b/ext/dom/domexception.c index 42aa341ada..9a65f51259 100644 --- a/ext/dom/domexception.c +++ b/ext/dom/domexception.c @@ -37,7 +37,7 @@ extern zend_class_entry *dom_domexception_class_entry; -zend_function_entry php_dom_domexception_class_functions[] = { +const zend_function_entry php_dom_domexception_class_functions[] = { {NULL, NULL, NULL} }; diff --git a/ext/dom/domimplementation.c b/ext/dom/domimplementation.c index 7f9ec43048..d398f79b46 100644 --- a/ext/dom/domimplementation.c +++ b/ext/dom/domimplementation.c @@ -34,7 +34,7 @@ * Since: */ -zend_function_entry php_dom_domimplementation_class_functions[] = { +const zend_function_entry php_dom_domimplementation_class_functions[] = { PHP_ME(domimplementation, getFeature, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_ALLOW_STATIC) PHP_ME(domimplementation, hasFeature, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_ALLOW_STATIC) PHP_ME(domimplementation, createDocumentType, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_ALLOW_STATIC) diff --git a/ext/dom/domimplementationlist.c b/ext/dom/domimplementationlist.c index afc2fd288b..206913e310 100644 --- a/ext/dom/domimplementationlist.c +++ b/ext/dom/domimplementationlist.c @@ -35,7 +35,7 @@ * Since: DOM Level 3 */ -zend_function_entry php_dom_domimplementationlist_class_functions[] = { +const zend_function_entry php_dom_domimplementationlist_class_functions[] = { PHP_FALIAS(item, dom_domimplementationlist_item, NULL) {NULL, NULL, NULL} }; diff --git a/ext/dom/domimplementationsource.c b/ext/dom/domimplementationsource.c index a9fb191353..475768be39 100644 --- a/ext/dom/domimplementationsource.c +++ b/ext/dom/domimplementationsource.c @@ -35,7 +35,7 @@ * Since: DOM Level 3 */ -zend_function_entry php_dom_domimplementationsource_class_functions[] = { +const zend_function_entry php_dom_domimplementationsource_class_functions[] = { PHP_FALIAS(getDomimplementation, dom_domimplementationsource_get_domimplementation, NULL) PHP_FALIAS(getDomimplementations, dom_domimplementationsource_get_domimplementations, NULL) {NULL, NULL, NULL} diff --git a/ext/dom/domlocator.c b/ext/dom/domlocator.c index c98067106c..ae3b795b8d 100644 --- a/ext/dom/domlocator.c +++ b/ext/dom/domlocator.c @@ -35,7 +35,7 @@ * Since: DOM Level 3 */ -zend_function_entry php_dom_domlocator_class_functions[] = { +const zend_function_entry php_dom_domlocator_class_functions[] = { {NULL, NULL, NULL} }; diff --git a/ext/dom/domstringlist.c b/ext/dom/domstringlist.c index 6ade1dd2e3..84bd5d7538 100644 --- a/ext/dom/domstringlist.c +++ b/ext/dom/domstringlist.c @@ -35,7 +35,7 @@ * Since: DOM Level 3 */ -zend_function_entry php_dom_domstringlist_class_functions[] = { +const zend_function_entry php_dom_domstringlist_class_functions[] = { PHP_FALIAS(item, dom_domstringlist_item, NULL) {NULL, NULL, NULL} }; diff --git a/ext/dom/element.c b/ext/dom/element.c index 21d65c53f9..9cec9577e5 100644 --- a/ext/dom/element.c +++ b/ext/dom/element.c @@ -35,7 +35,7 @@ * Since: */ -zend_function_entry php_dom_element_class_functions[] = { +const zend_function_entry php_dom_element_class_functions[] = { PHP_FALIAS(getAttribute, dom_element_get_attribute, NULL) PHP_FALIAS(setAttribute, dom_element_set_attribute, NULL) PHP_FALIAS(removeAttribute, dom_element_remove_attribute, NULL) diff --git a/ext/dom/entity.c b/ext/dom/entity.c index adc6b54d82..3bc939b640 100644 --- a/ext/dom/entity.c +++ b/ext/dom/entity.c @@ -35,7 +35,7 @@ * Since: */ -zend_function_entry php_dom_entity_class_functions[] = { +const zend_function_entry php_dom_entity_class_functions[] = { {NULL, NULL, NULL} }; diff --git a/ext/dom/entityreference.c b/ext/dom/entityreference.c index ba1de0a97f..d2e5d701e2 100644 --- a/ext/dom/entityreference.c +++ b/ext/dom/entityreference.c @@ -35,7 +35,7 @@ * Since: */ -zend_function_entry php_dom_entityreference_class_functions[] = { +const zend_function_entry php_dom_entityreference_class_functions[] = { PHP_ME(domentityreference, __construct, NULL, ZEND_ACC_PUBLIC) {NULL, NULL, NULL} }; diff --git a/ext/dom/namednodemap.c b/ext/dom/namednodemap.c index f2b0cad438..c1269fe252 100644 --- a/ext/dom/namednodemap.c +++ b/ext/dom/namednodemap.c @@ -35,7 +35,7 @@ * Since: */ -zend_function_entry php_dom_namednodemap_class_functions[] = { +const zend_function_entry php_dom_namednodemap_class_functions[] = { PHP_FALIAS(getNamedItem, dom_namednodemap_get_named_item, NULL) PHP_FALIAS(setNamedItem, dom_namednodemap_set_named_item, NULL) PHP_FALIAS(removeNamedItem, dom_namednodemap_remove_named_item, NULL) diff --git a/ext/dom/namelist.c b/ext/dom/namelist.c index 4e49f08ddf..31882e78b8 100644 --- a/ext/dom/namelist.c +++ b/ext/dom/namelist.c @@ -35,7 +35,7 @@ * Since: DOM Level 3 */ -zend_function_entry php_dom_namelist_class_functions[] = { +const zend_function_entry php_dom_namelist_class_functions[] = { PHP_FALIAS(getName, dom_namelist_get_name, NULL) PHP_FALIAS(getNamespaceURI, dom_namelist_get_namespace_uri, NULL) {NULL, NULL, NULL} diff --git a/ext/dom/node.c b/ext/dom/node.c index 226badaa72..81e4e5c10c 100644 --- a/ext/dom/node.c +++ b/ext/dom/node.c @@ -34,7 +34,7 @@ * Since: */ -zend_function_entry php_dom_node_class_functions[] = { +const zend_function_entry php_dom_node_class_functions[] = { PHP_FALIAS(insertBefore, dom_node_insert_before, NULL) PHP_FALIAS(replaceChild, dom_node_replace_child, NULL) PHP_FALIAS(removeChild, dom_node_remove_child, NULL) diff --git a/ext/dom/nodelist.c b/ext/dom/nodelist.c index 4c36e2c6ca..20bb36d2be 100644 --- a/ext/dom/nodelist.c +++ b/ext/dom/nodelist.c @@ -35,7 +35,7 @@ * Since: */ -zend_function_entry php_dom_nodelist_class_functions[] = { +const zend_function_entry php_dom_nodelist_class_functions[] = { PHP_FALIAS(item, dom_nodelist_item, NULL) {NULL, NULL, NULL} }; diff --git a/ext/dom/notation.c b/ext/dom/notation.c index c045e4254a..3517933474 100644 --- a/ext/dom/notation.c +++ b/ext/dom/notation.c @@ -35,7 +35,7 @@ * Since: */ -zend_function_entry php_dom_notation_class_functions[] = { +const zend_function_entry php_dom_notation_class_functions[] = { {NULL, NULL, NULL} }; diff --git a/ext/dom/php_dom.c b/ext/dom/php_dom.c index 747c043c4e..121369e690 100644 --- a/ext/dom/php_dom.c +++ b/ext/dom/php_dom.c @@ -480,7 +480,7 @@ zend_object_value dom_objects_store_clone_obj(zval *zobject TSRMLS_DC) return retval; } -static zend_function_entry dom_functions[] = { +static const zend_function_entry dom_functions[] = { PHP_FE(dom_import_simplexml, NULL) {NULL, NULL, NULL} }; @@ -489,7 +489,7 @@ static zend_object_handlers* dom_get_obj_handlers(TSRMLS_D) { return &dom_object_handlers; } -static zend_module_dep dom_deps[] = { +static const zend_module_dep dom_deps[] = { ZEND_MOD_REQUIRED("libxml") ZEND_MOD_CONFLICTS("domxml") {NULL, NULL, NULL} diff --git a/ext/dom/processinginstruction.c b/ext/dom/processinginstruction.c index 19b4213b31..3380e034ce 100644 --- a/ext/dom/processinginstruction.c +++ b/ext/dom/processinginstruction.c @@ -35,7 +35,7 @@ * Since: */ -zend_function_entry php_dom_processinginstruction_class_functions[] = { +const zend_function_entry php_dom_processinginstruction_class_functions[] = { PHP_ME(domprocessinginstruction, __construct, NULL, ZEND_ACC_PUBLIC) {NULL, NULL, NULL} }; diff --git a/ext/dom/string_extend.c b/ext/dom/string_extend.c index fd758764f0..45a5fb08d7 100644 --- a/ext/dom/string_extend.c +++ b/ext/dom/string_extend.c @@ -35,7 +35,7 @@ * Since: */ -zend_function_entry php_dom_string_extend_class_functions[] = { +const zend_function_entry php_dom_string_extend_class_functions[] = { PHP_FALIAS(findOffset16, dom_string_extend_find_offset16, NULL) PHP_FALIAS(findOffset32, dom_string_extend_find_offset32, NULL) {NULL, NULL, NULL} diff --git a/ext/dom/text.c b/ext/dom/text.c index 43309ae9f7..e9589f1ae3 100644 --- a/ext/dom/text.c +++ b/ext/dom/text.c @@ -35,7 +35,7 @@ * Since: */ -zend_function_entry php_dom_text_class_functions[] = { +const zend_function_entry php_dom_text_class_functions[] = { PHP_FALIAS(splitText, dom_text_split_text, NULL) PHP_FALIAS(isWhitespaceInElementContent, dom_text_is_whitespace_in_element_content, NULL) PHP_FALIAS(isElementContentWhitespace, dom_text_is_whitespace_in_element_content, NULL) diff --git a/ext/dom/typeinfo.c b/ext/dom/typeinfo.c index 338e58dd28..f8c3ce8db0 100644 --- a/ext/dom/typeinfo.c +++ b/ext/dom/typeinfo.c @@ -35,7 +35,7 @@ * Since: DOM Level 3 */ -zend_function_entry php_dom_typeinfo_class_functions[] = { +const zend_function_entry php_dom_typeinfo_class_functions[] = { {NULL, NULL, NULL} }; diff --git a/ext/dom/userdatahandler.c b/ext/dom/userdatahandler.c index 8f5bdc0049..c9e60e4e19 100644 --- a/ext/dom/userdatahandler.c +++ b/ext/dom/userdatahandler.c @@ -35,7 +35,7 @@ * Since: DOM Level 3 */ -zend_function_entry php_dom_userdatahandler_class_functions[] = { +const zend_function_entry php_dom_userdatahandler_class_functions[] = { PHP_FALIAS(handle, dom_userdatahandler_handle, NULL) {NULL, NULL, NULL} }; diff --git a/ext/dom/xpath.c b/ext/dom/xpath.c index 2862e4a32f..55b277dc88 100644 --- a/ext/dom/xpath.c +++ b/ext/dom/xpath.c @@ -36,7 +36,7 @@ #if defined(LIBXML_XPATH_ENABLED) -zend_function_entry php_dom_xpath_class_functions[] = { +const zend_function_entry php_dom_xpath_class_functions[] = { PHP_ME(domxpath, __construct, NULL, ZEND_ACC_PUBLIC) PHP_FALIAS(registerNamespace, dom_xpath_register_ns, NULL) PHP_FALIAS(query, dom_xpath_query, NULL) |
