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/xmlwriter/php_xmlwriter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/xmlwriter/php_xmlwriter.c') diff --git a/ext/xmlwriter/php_xmlwriter.c b/ext/xmlwriter/php_xmlwriter.c index 83d0de6dd0..a76ebaf963 100644 --- a/ext/xmlwriter/php_xmlwriter.c +++ b/ext/xmlwriter/php_xmlwriter.c @@ -173,7 +173,7 @@ static zend_object_value xmlwriter_object_new(zend_class_entry *class_type TSRML } \ /* {{{ xmlwriter_functions */ -static zend_function_entry xmlwriter_functions[] = { +static const zend_function_entry xmlwriter_functions[] = { PHP_FE(xmlwriter_open_uri, NULL) PHP_FE(xmlwriter_open_memory, NULL) #if LIBXML_VERSION >= 20605 @@ -234,7 +234,7 @@ static zend_function_entry xmlwriter_functions[] = { #define PHP_ME_MAPPING(name, func_name, arg_types, flags) ZEND_ME_MAPPING(name, func_name, arg_types) #endif /* {{{ xmlwriter_class_functions */ -static zend_function_entry xmlwriter_class_functions[] = { +static const zend_function_entry xmlwriter_class_functions[] = { PHP_ME_MAPPING(openUri, xmlwriter_open_uri, NULL, 0) PHP_ME_MAPPING(openMemory, xmlwriter_open_memory, NULL, 0) #if LIBXML_VERSION >= 20605 -- cgit v1.2.1