[php-maint] Bug#827548: php5-common: sessionclean does not read ini settings in conf.d directories

Chris Laif chris.laif at googlemail.com
Fri Jun 17 15:57:42 UTC 2016


Package: php5-common
Version: 5.6.22+dfsg-0+deb8u1

The /usr/lib/php5/sessionclean script does not read ini settings in
conf.d directories:

I added some debug code to better explain the problem:

$ tail -n6 /usr/lib/php5/sessionclean | head -n3
    # find all files older then maxlifetime and delete them
    echo "DEBUG: $save_path $gc_maxlifetime"
    find -O3 "$save_path" -depth -mindepth 1 -name 'sess_*'
-ignore_readdir_race -type f -cmin "+$gc_maxlifetime" -delete

# /usr/lib/php5/sessionclean
DEBUG: /var/lib/php5/sessions 24

# echo "session.gc_maxlifetime = 3456" > /etc/php5/apache2/conf.d/90-local.ini

# /usr/lib/php5/sessionclean
DEBUG: /var/lib/php5/sessions 24

We maintain our php settings in separate ini files as this is
considerably easier when working with a huge number of installations
and/or employees. Patching the main php.ini just for the
gc_maxlifetime parameter is not the best option.

Chris



More information about the pkg-php-maint mailing list