diff options
author | Dmitry Stogov <dmitry@php.net> | 2007-09-27 18:28:44 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2007-09-27 18:28:44 +0000 |
commit | 8146078f7bbbe4f4799e1a154ea450c90c855728 (patch) | |
tree | 46cb160985407d24ff3a9d485a90e88fee4cdbb6 /Zend/zend_builtin_functions.c | |
parent | 98a2c03808f73be0c08bfe654b985483ccb8d6bc (diff) | |
download | php-git-8146078f7bbbe4f4799e1a154ea450c90c855728.tar.gz |
Improved memory usage by movig constants to read only memory. (Dmitry, Pierre)
Diffstat (limited to 'Zend/zend_builtin_functions.c')
-rw-r--r-- | Zend/zend_builtin_functions.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index 059867e60c..0be6086a43 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -89,7 +89,7 @@ static ZEND_FUNCTION(zend_thread_id); #include "zend_arg_defs.c" -static zend_function_entry builtin_functions[] = { /* {{{ */ +static const zend_function_entry builtin_functions[] = { /* {{{ */ ZEND_FE(zend_version, NULL) ZEND_FE(func_num_args, NULL) ZEND_FE(func_get_arg, NULL) @@ -1728,7 +1728,7 @@ ZEND_FUNCTION(get_defined_constants) zend_constant *val; int module_number; zval **modules; - char **module_names; + const char **module_names; zend_module_entry *module; int i = 1; @@ -2282,7 +2282,7 @@ ZEND_FUNCTION(get_extension_funcs) zend_uchar ext_type; char *name; zend_module_entry *module; - zend_function_entry *func; + const zend_function_entry *func; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "t", &ext, &ext_len, &ext_type) == FAILURE) { return; |