hi, most likely you're using a modified php.ini or additional configuration from /etc/php5/conf.d/
i redirected 2>/dev/null to avoid these messages, although this might not be the best idea. cheers, raoul On 01/-10/-28163 08:59 PM, Bin Zhang wrote: > > These warnings come from the command "php5 -c > /etc/php5/apache2/php.ini" introduced (see #504053) in > /usr/lib/php5/maxlifetime: > > ######################################################### > --- maxlifetime.old 2010-08-12 10:25:45.000000000 +0200 > +++ maxlifetime 2010-08-12 10:26:15.000000000 +0200 > @@ -2,11 +2,17 @@ > > max=1440 > > -for ini in /etc/php5/*/php.ini; 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 > -done > +if which php5 >/dev/null 2>&1 && [ -e /etc/php5/apache2/php.ini ]; then > + cur=$(php5 -c /etc/php5/apache2/php.ini -r 'print > ini_get("session.gc_maxlifetime");') > + [ -z "$cur" ] && cur=0 > + [ "$cur" -gt "$max" ] && max=$cur > +else > + for ini in /etc/php5/*/php.ini; 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 > + done > +fi > > echo $(($max/60)) > ########################################################## -- ____________________________________________________________________ DI (FH) Raoul Bhatia M.Sc. email. r.bha...@ipax.at Technischer Leiter IPAX - Aloy Bhatia Hava OG web. http://www.ipax.at Barawitzkagasse 10/2/2/11 email. off...@ipax.at 1190 Wien tel. +43 1 3670030 FN 277995t HG Wien fax. +43 1 3670030 15 ____________________________________________________________________ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org