diff options
author | Dmitry Stogov <dmitry@php.net> | 2007-09-27 18:00:48 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2007-09-27 18:00:48 +0000 |
commit | 6c810b0d4c1b12c675f69f5cfb32f26b6179d460 (patch) | |
tree | e95f336ce39693101bed812985b914c9bd80523e /ext/xml/xml.c | |
parent | f6d9901873156c560eb6da7dafbefc56c363b2bd (diff) | |
download | php-git-6c810b0d4c1b12c675f69f5cfb32f26b6179d460.tar.gz |
Improved memory usage by movig constants to read only memory. (Dmitry, Pierre)
Diffstat (limited to 'ext/xml/xml.c')
-rw-r--r-- | ext/xml/xml.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/xml/xml.c b/ext/xml/xml.c index 26cb27a4f6..7c945240d3 100644 --- a/ext/xml/xml.c +++ b/ext/xml/xml.c @@ -107,7 +107,7 @@ static ZEND_ARG_PASS_INFO(1) ZEND_END_ARG_INFO(); -zend_function_entry xml_functions[] = { +const zend_function_entry xml_functions[] = { PHP_FE(xml_parser_create, NULL) PHP_FE(xml_parser_create_ns, NULL) PHP_FE(xml_set_object, second_arg_force_ref) @@ -136,7 +136,7 @@ zend_function_entry xml_functions[] = { }; #ifdef LIBXML_EXPAT_COMPAT -static zend_module_dep xml_deps[] = { +static const zend_module_dep xml_deps[] = { ZEND_MOD_REQUIRED("libxml") {NULL, NULL, NULL} }; |