[php-maint] php5-common - /usr/lib/php5/maxlifetime
Jörg Ludwig
joerg.ludwig at iserv.eu
Fri Nov 16 20:21:59 UTC 2007
Hi,
>> /usr/lib/php5/maxlifetime ignores my change of session.gc_maxlifetime in
>> /etc/php5/conf.d/iserv.ini.
>
> Why are you adjusting the lifetime in the directory that's supposed to be
> for per-module config snippets? It's not clear to me that we want to
> support this.
because I am writing a module that needs a higher session lifetime. This
module should not have to chance the default php.ini.
>> -for ini in /etc/php5/*/php.ini; do
>> +for ini in /etc/php5/*/{php.ini,conf.d/*}; do
>> cur=$(sed -n -e 's/^[[:space:]]*session.gc_maxlifetime[[:space:]]*=[[:space:]]*\([0-9]\+\).*$/\1/p' $ini 2>/dev/null || true);
>> [ -z "$cur" ] && cur=0
>> [ "$cur" -gt "$max" ] && max=$cur
>
> This patch is wrong, it uses bash-specific syntax and the script uses
> /bin/sh as interpreter.
Good point. That should be corrected.
--
Mit freundlichen Grüßen,
Jörg Ludwig
IServ
Falk & Ludwig GbR
Rebenring 33
38106 Braunschweig
Telefon: 0531 - 206 82 92
Mobil: 0179 - 91 01 055
E-Mail: joerg.ludwig at iserv.eu
Internet: www.iserv.eu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-php-maint/attachments/20071116/3020a92d/attachment.pgp
More information about the pkg-php-maint
mailing list