Package: php5-common
Version: 5.2.6-1
Severity: wishlist
Tags: patch

---------- Forwarded message ----------
From: Jean-Luc Lacroix <[EMAIL PROTECTED]>
Date: 2008/10/30
Subject: [php-maint] /etc/cron.d/php5 and session garbage collection
To: [EMAIL PROTECTED]


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
[EMAIL PROTECTED]
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."



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to