Debian Bug report logs -
#758661
/usr/lib/php5/sessionclean: 10: [: /etc/php5/-e: unexpected operator
Reported by: Sven Hartge <sven@svenhartge.de>
Date: Tue, 19 Aug 2014 18:21:01 UTC
Severity: normal
Merged with 758674
Found in version php5/5.6.0~rc4+dfsg-3
Fixed in version php5/5.6.0~rc4+dfsg-4
Done: Ondřej Surý <ondrej@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#758661; Package php5-common.
(Tue, 19 Aug 2014 18:21:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Sven Hartge <sven@svenhartge.de>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(Tue, 19 Aug 2014 18:21:06 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: php5-common
Version: 5.6.0~rc4+dfsg-3
Severity: normal
Hi!
The session cleaning cronjob errors with /bin/sh being dash:
# ls -al /bin/sh
lrwxrwxrwx 1 root root 4 Aug 19 20:15 /bin/sh -> dash
# /usr/lib/php5/sessionclean
/usr/lib/php5/sessionclean: 10: [: /etc/php5/-e: unexpected operator
# sh -x /usr/lib/php5/sessionclean
+ SAPIS=apache2:apache2\napache2filter:apache2\ncgi:php5\nfpm:php5-fpm
+ proc_names=
+ sort -rn -t: -k2,2
+ + IFS=: read -r save_path gc_maxlifetime
+ echo -e apache2:apache2\napache2filter:apache2\ncgi:php5\nfpm:php5-fpm
+ IFS=: read -r conf_dir proc_name
+ [ -e /etc/php5/-e apache2/php.ini ]
/usr/lib/php5/sessionclean: 10: [: /etc/php5/-e: unexpected operator
+ IFS=: read -r conf_dir proc_name
+ [ -e /etc/php5/apache2filter/php.ini ]
+ IFS=: read -r conf_dir proc_name
+ [ -e /etc/php5/cgi/php.ini ]
+ IFS=: read -r conf_dir proc_name
+ [ -e /etc/php5/fpm/php.ini ]
+ IFS=: read -r conf_dir proc_name
+ pidof
sort -u -t: -k 1,1
+ exit 0
If /bin/sh is bash, the script works:
# ls -al /bin/sh
lrwxrwxrwx 1 root root 4 Aug 19 20:14 /bin/sh -> bash
# /usr/lib/php5/sessionclean
Either use /bin/bash as shell or rewrite the script to work with dash as /bin/sh
Grüße,
Sven.
-- Package-specific info:
==== Additional PHP 5 information ====
++++ PHP 5 SAPI (php5query -S): ++++
cli
++++ PHP 5 Extensions (php5query -M -v): ++++
readline (Enabled for cli by maintainer script)
json (Enabled for cli by maintainer script)
opcache (Enabled for cli by maintainer script)
pdo (Enabled for cli by maintainer script)
++++ Configuration files: ++++
**** /etc/php5/mods-available/pdo.ini ****
extension=pdo.so
**** /etc/php5/mods-available/opcache.ini ****
zend_extension=opcache.so
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (600, 'unstable'), (400, 'testing'), (300, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64
Kernel: Linux 3.14-2-amd64 (SMP w/12 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages php5-common depends on:
ii libc6 2.19-9
ii lsof 4.86+dfsg-1
ii psmisc 22.21-2
ii sed 4.2.2-4
ii ucf 3.0030
php5-common recommends no packages.
Versions of packages php5-common suggests:
pn php5-user-cache <none>
Versions of packages php5-cli depends on:
ii libbz2-1.0 1.0.6-7
ii libc6 2.19-9
ii libcomerr2 1.42.11-2
ii libdb5.3 5.3.28-5
ii libedit2 3.1-20140620-2
ii libgssapi-krb5-2 1.12.1+dfsg-7
ii libk5crypto3 1.12.1+dfsg-7
ii libkrb5-3 1.12.1+dfsg-7
ii libmagic1 1:5.19-1
ii libonig2 5.9.5-2
ii libpcre3 1:8.35-3
ii libqdbm14 1.8.78-5+b1
ii libssl1.0.0 1.0.1i-2
ii libxml2 2.9.1+dfsg1-4
ii mime-support 3.56
ii php5-json 1.3.6-1
ii tzdata 2014f-1
ii ucf 3.0030
ii zlib1g 1:1.2.8.dfsg-2
Versions of packages php5-cli recommends:
ii php5-readline 5.6.0~rc4+dfsg-3
Versions of packages php5-cli suggests:
ii php-pear 5.6.0~rc4+dfsg-3
-- no debconf information
Marked as fixed in versions php5/5.6.0~rc4+dfsg-4.
Request was from Sven Hartge <sven@svenhartge.de>
to control@bugs.debian.org.
(Tue, 19 Aug 2014 21:54:04 GMT) (full text, mbox, link).
Merged 758661 758674
Request was from Salvatore Bonaccorso <carnil@debian.org>
to control@bugs.debian.org.
(Wed, 20 Aug 2014 05:12:05 GMT) (full text, mbox, link).
Merged 758661 758674
Request was from Ondřej Surý <ondrej@debian.org>
to control@bugs.debian.org.
(Wed, 20 Aug 2014 08:48:16 GMT) (full text, mbox, link).
Marked Bug as done
Request was from Ondřej Surý <ondrej@debian.org>
to control@bugs.debian.org.
(Tue, 14 Apr 2015 13:42:21 GMT) (full text, mbox, link).
Notification sent
to Sven Hartge <sven@svenhartge.de>:
Bug acknowledged by developer.
(Tue, 14 Apr 2015 13:42:22 GMT) (full text, mbox, link).
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Wed, 13 May 2015 07:28:35 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jul 2 01:38:48 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.