summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2000-09-05 22:42:45 +0000
committerStanislav Malyshev <stas@php.net>2000-09-05 22:42:45 +0000
commit795083a15cf9a721e206b79ed2c8f946d10aeeae (patch)
tree182a57697beefb670e3646e16f1c2ec66022d721
parentdd0ade23cf019a15c94538eb0ac57205b6b5e032 (diff)
downloadphp-git-795083a15cf9a721e206b79ed2c8f946d10aeeae.tar.gz
Now it should not crash, though still leaks
# I'll continue with it tomorrow
-rw-r--r--ext/session/session.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/session/session.c b/ext/session/session.c
index 7fc84f4dbe..7d72c116b7 100644
--- a/ext/session/session.c
+++ b/ext/session/session.c
@@ -1397,9 +1397,16 @@ static void php_rinit_session_globals(PSLS_D)
PS(id) = NULL;
PS(nr_open_sessions) = 0;
PS(mod_data) = NULL;
+ PS(entropy_file) = estrdup(INI_STR("entropy_file"));
+ PS(extern_referer_chk) = estrdup(INI_STR("extern_referer_chk"));
+ PS(save_path) = estrdup(INI_STR("save_path"));
+ PS(session_name) = estrdup(INI_STR("session_name"));
+ PS(cache_limiter) = estrdup(INI_STR("cache_limiter"));
+ PS(cookie_path) = estrdup(INI_STR("cookie_path"));
+ PS(cookie_domain) = estrdup(INI_STR("cookie_domain"));
}
-#define FREE_NULL(x) efree(x); (x) = NULL;
+#define FREE_NULL(x) STR_FREE(x); (x) = NULL;
static void php_rshutdown_session_globals(PSLS_D)
{