[php-maint] Bug#590485: Re

Raoul Bhatia [IPAX] r.bhatia at ipax.at
Fri Aug 20 12:59:04 UTC 2010


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.bhatia at ipax.at
Technischer Leiter

IPAX - Aloy Bhatia Hava OG          web.          http://www.ipax.at
Barawitzkagasse 10/2/2/11           email.            office at ipax.at
1190 Wien                           tel.               +43 1 3670030
FN 277995t HG Wien                  fax.            +43 1 3670030 15
____________________________________________________________________





More information about the pkg-php-maint mailing list