[php-maint] Bug#654887: php5-common: maxlifetime cronentry sends frequent warnings (patch)
Witold Baryluk
baryluk at smp.if.uj.edu.pl
Wed May 23 04:07:51 UTC 2012
Package: php5-common
Version: 5.4.3-5
Followup-For: Bug #654887
I belive this simple patch should fix problem
--- php5.org 2012-05-23 06:03:40.256007592 +0200
+++ php5 2012-05-23 06:04:15.764688333 +0200
@@ -4,4 +4,4 @@
# files, or 24 minutes if not defined. See /usr/lib/php5/maxlifetime
# Look for and purge old sessions every 30 minutes
-09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] && [ -d
/var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f
-ignore_readdir_race -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {}
2>/dev/null \; -delete
+09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] && [ -d
/var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f
-ignore_readdir_race -cmin +$(/usr/lib/php5/maxlifetime 2>/dev/null) ! -execdir
fuser -s {} 2>/dev/null \; -delete
It just redirects stderr of maxlifetime script to /dev/null.
In my case normally it produces something like this:
baryluk at sredniczarny /etc/cron.d/ > /usr/lib/php5/maxlifetime
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php5/20100525+lfs/cairo.so' - /usr/lib/php5/20100525+lfs/cairo.so:
cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php5/20100525+lfs/php_gtk2.so' -
/usr/lib/php5/20100525+lfs/php_gtk2.so: cannot open shared object file: No such
file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php5/20100525+lfs/sqlite.so' - /usr/lib/php5/20100525+lfs/sqlite.so:
cannot open shared object file: No such file or directory in Unknown on line 0
24
which makes my mailbox full of cronjobs output.
Regards,
Witek
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 3.4.0-t43-devel-smp-01513-g9daeaa3-dirty (SMP w/1 CPU core)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to pl_PL.UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages php5-common depends on:
ii dpkg 1.16.3
ii libc6 2.13-32
ii psmisc 22.16-1
ii sed 4.2.1-9
ii ucf 3.0025+nmu3
php5-common recommends no packages.
php5-common suggests no packages.
-- Configuration Files:
/etc/cron.d/php5 changed [not included]
-- no debconf information
More information about the pkg-php-maint
mailing list