[php-maint] Bug#770150: sessionclean uses sed -z option not available in wheezy

Marco Wessel marco at driebit.nl
Wed Nov 19 09:19:30 UTC 2014

The sessionclean script uses the -z option to sed, which was introduced in sed 4.2.2. Wheezy contains sed 4.2.1. This use of the -z option therefore causes the following message to be e-mailed every half hour:

From: Cron <root at cache02>   [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime)

sed: invalid option -- 'z'
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

(etc, sed usage text).

More information about the pkg-php-maint mailing list