From 8146078f7bbbe4f4799e1a154ea450c90c855728 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 27 Sep 2007 18:28:44 +0000 Subject: Improved memory usage by movig constants to read only memory. (Dmitry, Pierre) --- ext/xml/xml.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/xml/xml.c') diff --git a/ext/xml/xml.c b/ext/xml/xml.c index 58a1083cd0..2cda61a165 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} }; -- cgit v1.2.1