[php-maint] Bug#504053: Fwd: /etc/cron.d/php5 and session garbage collection
Raphael Geissert
atomo64 at gmail.com
Thu Oct 30 20:38:10 UTC 2008
Package: php5-common
Version: 5.2.6-1
Severity: wishlist
Tags: patch
---------- Forwarded message ----------
From: Jean-Luc Lacroix <jean.luc.lacroix at regains.be>
Date: 2008/10/30
Subject: [php-maint] /etc/cron.d/php5 and session garbage collection
To: pkg-php-maint at lists.alioth.debian.org
Hi,
I just noticed that if a php.ini file has more than one valid value for
session.gc_maxlifetime config variable, the /usr/lib/php5/maxlifetime
script will stall.
May I suggest to add something like:
- cur=$(sed -n -e
's/^[[:space:]]*session.gc_maxlifetime[[:space:]]*=[[:space:]]*\([0-9]\+\).*$/\1/p'
$ini
2>/dev/null || true);
+ cur=$(sed -n -e
's/^[[:space:]]*session.gc_maxlifetime[[:space:]]*=[[:space:]]*\([0-9]\+\).*$/\1/p'
$ini |
tail -1 2>/dev/null || true);
This will take the last valid value for session.gc_maxlifetime.
Regards.
_______________________________________________
pkg-php-maint mailing list
pkg-php-maint at lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-php-maint
--
Raphael Geissert - Debian Maintainer
www.debian.org - get.debian.net
Henry A. Kissinger - "There cannot be a crisis next week. My schedule
is already full."
More information about the pkg-php-maint
mailing list