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/xmlwriter/php_xmlwriter.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/xmlwriter/php_xmlwriter.c')
| -rw-r--r-- | ext/xmlwriter/php_xmlwriter.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/xmlwriter/php_xmlwriter.c b/ext/xmlwriter/php_xmlwriter.c index 45a0d912c1..3bcf683c6d 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 @@ -230,7 +230,7 @@ static zend_function_entry xmlwriter_functions[] = {  #ifdef ZEND_ENGINE_2  /* {{{ 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  | 
