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 /ext/session/session.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 'ext/session/session.c')
-rw-r--r-- | ext/session/session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/session/session.c b/ext/session/session.c index 38c69e0864..5b8885e69b 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -597,7 +597,7 @@ static PHP_INI_MH(OnUpdateHashFunc) #if defined(HAVE_HASH_EXT) && !defined(COMPILE_DL_HASH) { - php_hash_ops *ops = php_hash_fetch_ops(new_value, new_value_length); + php_hash_ops *ops = (php_hash_ops*)php_hash_fetch_ops(new_value, new_value_length); if (ops) { PS(hash_func) = PS_HASH_FUNC_OTHER; @@ -1774,7 +1774,7 @@ static PHP_FUNCTION(session_write_close) /* {{{ session_functions[] */ -static zend_function_entry session_functions[] = { +static const zend_function_entry session_functions[] = { PHP_FE(session_name, NULL) PHP_FE(session_module_name, NULL) PHP_FE(session_save_path, NULL) |