cvs: php4 /ext/session session.c

From: Date: Tue, 05 Sep 2000 22:42:45 +0000
Subject: cvs: php4 /ext/session session.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-1595@lists.php.net to get a copy of this message
stas Tue Sep 5 15:42:45 2000 EDT Modified files: /php4/ext/session session.c Log: Now it should not crash, though still leaks # I'll continue with it tomorrow Index: php4/ext/session/session.c diff -u php4/ext/session/session.c:1.164 php4/ext/session/session.c:1.165 --- php4/ext/session/session.c:1.164 Tue Sep 5 14:31:56 2000 +++ php4/ext/session/session.c Tue Sep 5 15:42:45 2000 @@ -1397,9 +1397,16 @@ 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) {

« previous php.cvs (#1595) next »