[Pkg-php-commits] [php/debian-sid] Set default session.save_path to /var/lib/php5 (Closes: #576593)

Raphael Geissert geissert at debian.org
Sat May 1 19:21:42 UTC 2010


---
 debian/patches/series                  |    1 +
 debian/patches/session_save_path.patch |   20 ++++++++++++++++++++
 2 files changed, 21 insertions(+), 0 deletions(-)
 create mode 100644 debian/patches/session_save_path.patch

diff --git a/debian/patches/series b/debian/patches/series
index 0360c56..8ce83bc 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -61,3 +61,4 @@ upstream/gc_memory_leak.patch
 upstream/date_mem_leak.patch
 upstream/dba_unaligned_mem_access.patch
 upstream/mysqli_options_mem_issue.patch
+session_save_path.patch
diff --git a/debian/patches/session_save_path.patch b/debian/patches/session_save_path.patch
new file mode 100644
index 0000000..5e923c5
--- /dev/null
+++ b/debian/patches/session_save_path.patch
@@ -0,0 +1,20 @@
+Description: Set the default session.save_path dir to /var/lib/php5.
+ This is the directory that has been used in Debian to store the
+ session files and is partially protected by dir permissions.
+Origin: vendor
+Forwarded: not-needed
+Last-Update: 2010-05-01
+
+Index: php/ext/session/session.c
+===================================================================
+--- php.orig/ext/session/session.c
++++ php/ext/session/session.c
+@@ -765,7 +765,7 @@ static PHP_INI_MH(OnUpdateHashFunc) /* {
+ PHP_INI_BEGIN()
+ 	STD_PHP_INI_BOOLEAN("session.bug_compat_42",    "1",         PHP_INI_ALL, OnUpdateBool,   bug_compat,         php_ps_globals,    ps_globals)
+ 	STD_PHP_INI_BOOLEAN("session.bug_compat_warn",  "1",         PHP_INI_ALL, OnUpdateBool,   bug_compat_warn,    php_ps_globals,    ps_globals)
+-	STD_PHP_INI_ENTRY("session.save_path",          "",          PHP_INI_ALL, OnUpdateSaveDir,save_path,          php_ps_globals,    ps_globals)
++	STD_PHP_INI_ENTRY("session.save_path",          "/var/lib/php5",          PHP_INI_ALL, OnUpdateSaveDir,save_path,          php_ps_globals,    ps_globals)
+ 	STD_PHP_INI_ENTRY("session.name",               "PHPSESSID", PHP_INI_ALL, OnUpdateString, session_name,       php_ps_globals,    ps_globals)
+ 	PHP_INI_ENTRY("session.save_handler",           "files",     PHP_INI_ALL, OnUpdateSaveHandler)
+ 	STD_PHP_INI_BOOLEAN("session.auto_start",       "0",         PHP_INI_ALL, OnUpdateBool,   auto_start,         php_ps_globals,    ps_globals)
-- 
1.6.5





More information about the Pkg-php-commits mailing list