summaryrefslogtreecommitdiff
path: root/ext/dom
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2007-09-27 18:00:48 (GMT)
committerDmitry Stogov <dmitry@php.net>2007-09-27 18:00:48 (GMT)
commit6c810b0d4c1b12c675f69f5cfb32f26b6179d460 (patch)
treee95f336ce39693101bed812985b914c9bd80523e /ext/dom
parentf6d9901873156c560eb6da7dafbefc56c363b2bd (diff)
downloadphp-6c810b0d4c1b12c675f69f5cfb32f26b6179d460.tar.gz
Improved memory usage by movig constants to read only memory. (Dmitry, Pierre)
Diffstat (limited to 'ext/dom')
-rw-r--r--ext/dom/attr.c2
-rw-r--r--ext/dom/cdatasection.c2
-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.c2
-rw-r--r--ext/dom/dom_fe.h60
-rw-r--r--ext/dom/domconfiguration.c2
-rw-r--r--ext/dom/domerror.c2
-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.c2
-rw-r--r--ext/dom/entity.c2
-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.c2
-rw-r--r--ext/dom/php_dom.c4
-rw-r--r--ext/dom/processinginstruction.c2
-rw-r--r--ext/dom/string_extend.c2
-rw-r--r--ext/dom/text.c2
-rw-r--r--ext/dom/typeinfo.c2
-rw-r--r--ext/dom/userdatahandler.c2
-rw-r--r--ext/dom/xpath.c2
32 files changed, 62 insertions, 62 deletions
diff --git a/ext/dom/attr.c b/ext/dom/attr.c
index ce7b030..8a8c8f9 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 3c2f302..1f74ba7 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 117ada7..60a3fc3 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 f5ecb40..101b496 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 f726da0..894cdcf 100644
--- a/ext/dom/document.c
+++ b/ext/dom/document.c
@@ -48,7 +48,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 58b8e02..3751bc6 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 ffeda24..196d4ed 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 f1e4770..6d3815b 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 c1cf0f3..785b092 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 8bce0cd..68e3c07 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 ad40162..449895a 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 42aa341..9a65f51 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 de92cb0..bd48659 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 7d9ed84..db4f4c5 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 7e5e488..f1be6c5 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 c980671..ae3b795 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 6372e0c..723445a 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 fae0dae..a42b5b1 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 50dca0d..a40280d 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 f80af0f..d0f0b18 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 6d76f31..8cc431f 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 6ff06f6..0f2862e 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 e95fa2c..cd5ce8c 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 bcd0155..d985869 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 57f2424..c03f246 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 d6922c3..31e494b 100644
--- a/ext/dom/php_dom.c
+++ b/ext/dom/php_dom.c
@@ -512,7 +512,7 @@ zend_object_value dom_objects_ze1_clone_obj(zval *zobject TSRMLS_DC)
return zobject->value.obj;
}
-static zend_function_entry dom_functions[] = {
+static const zend_function_entry dom_functions[] = {
PHP_FE(dom_import_simplexml, NULL)
{NULL, NULL, NULL}
};
@@ -525,7 +525,7 @@ static zend_object_handlers* dom_get_obj_handlers(TSRMLS_D) {
}
}
-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 c1119b8..a30fae8 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 f828b1e..d7f6495 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 da7b34a..b23f94a 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 338e58d..f8c3ce8 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 908434f..4df36da 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 c7522a1..339fe5a 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)