summaryrefslogtreecommitdiff
path: root/ext/session/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/session/session.c')
-rw-r--r--ext/session/session.c4
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)