Debian Bug report logs - #758674
php5-common: /usr/lib/php5/sessionclean contains bashism but uses /bin/sh

version graph

Package: php5-common; Maintainer for php5-common is (unknown);

Reported by: Jelmer Vernooij <jelmer@debian.org>

Date: Tue, 19 Aug 2014 21:51:01 UTC

Severity: normal

Merged with 758661

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

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#758674; Package php5-common. (Tue, 19 Aug 2014 21:51:06 GMT) (full text, mbox, link).


Acknowledgement sent to Jelmer Vernooij <jelmer@debian.org>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Tue, 19 Aug 2014 21:51:06 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Jelmer Vernooij <jelmer@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: php5-common: /usr/lib/php5/sessionclean contains bashism but uses /bin/sh
Date: Tue, 19 Aug 2014 23:49:23 +0200
Package: php5-common
Version: 5.6.0~rc4+dfsg-3
Severity: normal

sessionclean, which is being run from cron, uses /bin/sh.

However, it also uses "echo -e", which is not supported by dash
(and will just print out "-e").

This results in an error:

% sudo /usr/lib/php5/sessionclean
/usr/lib/php5/sessionclean: 10: [: /etc/php5/-e: unexpected operator

Changing the first line of /usr/lib/php5/sessionclean to use /bin/bash
fixes the issue.

-- Package-specific info:
==== Additional PHP 5 information ====

++++ PHP 5 SAPI (php5query -S): ++++
apache2
cli

++++ PHP 5 Extensions (php5query -M -v): ++++
opcache (Enabled for apache2 by maintainer script)
opcache (Enabled for cli by maintainer script)
pdo_mysql (Enabled for apache2 by maintainer script)
pdo_mysql (Enabled for cli by maintainer script)
json (Enabled for apache2 by maintainer script)
json (Enabled for cli by maintainer script)
gd (Enabled for apache2 by maintainer script)
gd (Enabled for cli by maintainer script)
pdo (Enabled for apache2 by maintainer script)
pdo (Enabled for cli by maintainer script)
mysql (Enabled for apache2 by maintainer script)
mysql (Enabled for cli by maintainer script)
readline (Enabled for apache2 by maintainer script)
readline (Enabled for cli by maintainer script)
mysqli (Enabled for apache2 by maintainer script)
mysqli (Enabled for cli by maintainer script)
mcrypt (Enabled for apache2 by maintainer script)
mcrypt (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: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.13-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (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:
pn  php-pear  <none>

Versions of packages libapache2-mod-php5 depends on:
ii  apache2                             2.4.10-1
ii  apache2-bin [apache2-api-20120211]  2.4.10-1
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  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  libstdc++6                          4.9.1-7
ii  libxml2                             2.9.1+dfsg1-4
ii  mime-support                        3.56
ii  php5-cli                            5.6.0~rc4+dfsg-3
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 libapache2-mod-php5 suggests:
pn  php-pear  <none>

-- no debconf information



Marked as fixed in versions php5/5.6.0~rc4+dfsg-4. Request was from Salvatore Bonaccorso <carnil@debian.org> to control@bugs.debian.org. (Wed, 20 Aug 2014 05:12: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:06 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:17 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:22 GMT) (full text, mbox, link).


Notification sent to Jelmer Vernooij <jelmer@debian.org>:
Bug acknowledged by developer. (Tue, 14 Apr 2015 13:42:23 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:52 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.