Debian Bug report logs - #783246
php5en(dis)mod: mandatory space between semicolon and priority key

version graph

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

Reported by: Goran Miskovic <schkovich@gmail.com>

Date: Fri, 24 Apr 2015 14:21:01 UTC

Severity: wishlist

Tags: patch

Found in versions 5.5.9+dfsg-1ubuntu4.9, php5/5.6.28+dfsg-0+deb8u1

Fixed in version 5.6.26+dfsg-1+rm

Done: Debian FTP Masters <ftpmaster@ftp-master.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, schkovich@gmail.com, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#783246; Package php5-common. (Fri, 24 Apr 2015 14:21:06 GMT) (full text, mbox, link).


Acknowledgement sent to Goran Miskovic <schkovich@gmail.com>:
New Bug report received and forwarded. Copy sent to schkovich@gmail.com, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Fri, 24 Apr 2015 14:21:06 GMT) (full text, mbox, link).


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

From: Goran Miskovic <schkovich@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: php5en(dis)mod: mandatory space between semicolon and priority key
Date: Fri, 24 Apr 2015 14:19:28 +0000
[Message part 1 (text/plain, inline)]
Package: php5-common
Version: 5.5.9+dfsg-1ubuntu4.9
Severity: wishlist
Tags: patch

Dear Maintainer,

When menaging infrastructure using software such as Puppet Auegas tools would
handle *.ini files. Augeas PHP lens does not allow space(s) at the beginning 
of comments. In combination with mandatory space after semicolon as defined 
in regex in function php5-helper::get_prioroity it makes automation impossible.  

If priority in extension.ini is set as: ;priority=30 setting will be disregarded
and default priority will be used insetad.

Regardles of space between semicolon eg ;priority=30/; priority=30 and priority
key defined priroity should be used resulgint in creating 
/etc/sapi/conf.d/30-exension.ini

Following regex will match both ;priority=30 and ; priority=30
priority=$(sed -ne "s/^;[ ]\?priority=\([0-9]\+\)$/\\1/p" $source_ini)

Regards,
Goran Miskovic

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

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

++++ PHP 5 Extensions (php5query -M -v): ++++
solr (Enabled for fpm by local administrator)
solr (Enabled for cli by local administrator)
opcache (Enabled for fpm by maintainer script)
opcache (Enabled for cli by maintainer script)
mysql (Enabled for fpm by maintainer script)
mysql (Enabled for cli by maintainer script)
pdo (Enabled for fpm by maintainer script)
pdo (Enabled for cli by maintainer script)
xmlrpc (Enabled for fpm by maintainer script)
xmlrpc (Enabled for cli by maintainer script)
memcache (Enabled for fpm by maintainer script)
memcache (Enabled for cli by local administrator)
json (Enabled for fpm by maintainer script)
json (Enabled for cli by maintainer script)
tidy (Enabled for fpm by maintainer script)
tidy (Enabled for cli by maintainer script)
gd (Enabled for fpm by maintainer script)
gd (Enabled for cli by maintainer script)
mysqli (Enabled for fpm by maintainer script)
mysqli (Enabled for cli by maintainer script)
readline (Enabled for fpm by maintainer script)
readline (Enabled for cli by maintainer script)
imagick (Enabled for fpm by local administrator)
imagick (Enabled for cli by local administrator)
pdo_mysql (Enabled for fpm by maintainer script)
pdo_mysql (Enabled for cli by maintainer script)
curl (Enabled for fpm by maintainer script)
curl (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 trusty-updates
  APT policy: (500, 'trusty-updates'), (500, 'trusty-security'), (500, 'trusty')
Architecture: amd64 (x86_64)

Kernel: Linux 3.13.0-49-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages php5-common depends on:
ii  libc6      2.19-0ubuntu6.6
ii  lsof       4.86+dfsg-1ubuntu2
ii  php5-json  1.3.2-2build1
ii  psmisc     22.20-1ubuntu2
ii  sed        4.2.2-4ubuntu1
ii  ucf        3.0027+nmu1

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-5
ii  libc6         2.19-0ubuntu6.6
ii  libdb5.3      5.3.28-3ubuntu3
ii  libedit2      3.1-20130712-2
ii  libmagic1     1:5.14-2ubuntu3.3
ii  libpcre3      1:8.31-2ubuntu2
ii  libssl1.0.0   1.0.1f-1ubuntu2.11
ii  libxml2       2.9.1+dfsg1-3ubuntu4.4
ii  mime-support  3.54ubuntu1.1
ii  tzdata        2015c-0ubuntu0.14.04
ii  ucf           3.0027+nmu1
ii  zlib1g        1:1.2.8.dfsg-1ubuntu1

Versions of packages php5-cli recommends:
ii  php5-readline  5.5.9+dfsg-1ubuntu4.9

Versions of packages php5-cli suggests:
ii  php-pear  5.5.9+dfsg-1ubuntu4.9

Versions of packages php5-fpm depends on:
ii  dpkg                1.17.5ubuntu5.4
ii  libbz2-1.0          1.0.6-5
ii  libc6               2.19-0ubuntu6.6
ii  libdb5.3            5.3.28-3ubuntu3
ii  libmagic1           1:5.14-2ubuntu3.3
ii  libpcre3            1:8.31-2ubuntu2
ii  libssl1.0.0         1.0.1f-1ubuntu2.11
ii  libsystemd-daemon0  204-5ubuntu20.11
ii  libxml2             2.9.1+dfsg1-3ubuntu4.4
ii  mime-support        3.54ubuntu1.1
ii  sysv-rc             2.88dsf-41ubuntu6.1
ii  tzdata              2015c-0ubuntu0.14.04
ii  ucf                 3.0027+nmu1
ii  zlib1g              1:1.2.8.dfsg-1ubuntu1

Versions of packages php5-fpm suggests:
ii  php-pear  5.5.9+dfsg-1ubuntu4.9

-- no debconf information
[php5-helper.patch (text/x-diff, attachment)]
[php5-helper.patch (text/x-diff, attachment)]
[php5-helper.patch (text/x-diff, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#783246; Package php5-common. (Tue, 13 Dec 2016 21:42:04 GMT) (full text, mbox, link).


Acknowledgement sent to J G Miller <miller@yoyo.ORG>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Tue, 13 Dec 2016 21:42:04 GMT) (full text, mbox, link).


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

From: J G Miller <miller@yoyo.ORG>
To: Debian Bug Tracking System <783246@bugs.debian.org>
Subject: Re: php5en(dis)mod: mandatory space between semicolon and priority key
Date: Tue, 13 Dec 2016 22:27:39 +0100
Package: php5-common
Version: 5.6.28+dfsg-0+deb8u1
Followup-For: Bug #783246

Allowing some white space on the priority line before the word priority
and around the equals sign in the get_priority function would be most welcome.

This strictness results for me in duplicate symlinks with wrong
priority 20 to keep appearing every time there is an update and
hourly already loaded mail messages and the need for manual pruning.

--- php5/php5-helper.orig       2016-12-09 13:26:56.000000000 +0100
+++ php5/php5-helper            2016-12-09 13:26:56.000000000 +0100
@@ -132,7 +132,7 @@
     module_exists $modname || module_ret=$?

     if [ "$module_ret" -eq 0 ]; then
-       priority=$(sed -ne "s/^; priority=\([0-9]\+\)$/\\1/p" $source_ini)
+       priority=$(sed -ne "s/^;[[:space:]]*priority[[:space:]]*=[[:space:]]*\([0-9]\+\)$/\\1/p" $source_ini)
        [ -z "$priority" ] && priority=20
        echo $priority
        return 0

Incidentally, why the double backslash on the reference 1, viz \\1,
rather than the normal single backslash \1?

Thanking your for your support.


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

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

-- System Information:
Debian Release: 8.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: armel (armv5tel)

Kernel: Linux 3.16.0-4-kirkwood
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)



Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#783246; Package php5-common. (Wed, 14 Dec 2016 13:09:07 GMT) (full text, mbox, link).


Acknowledgement sent to Ondřej Surý <ondrej@sury.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Wed, 14 Dec 2016 13:09:07 GMT) (full text, mbox, link).


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

From: Ondřej Surý <ondrej@sury.org>
To: J G Miller <miller@yoyo.ORG>, Goran Miskovic <schkovich@gmail.com>, 783246@bugs.debian.org
Subject: Re: [php-maint] Bug#783246: php5en(dis)mod: mandatory space between semicolon and priority key
Date: Wed, 14 Dec 2016 14:04:51 +0100
Hi,

while I agree with you both that the priority parser should be more
relaxed about the whitespaces. The issue has a very easy fix - just fix
the whitespace to the "strict" format, and this change has a potential
to disrupt service for the people who already rely on the existing
strict behavior, so I don't think this is material for stable update.

However I have fixed this in next stable Debian (php-defaults_47), where
the php-helper will ignore any whitespace on the line (even the trailing
whitespace).

Cheers,
-- 
Ondřej Surý <ondrej@sury.org>
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server
Knot Resolver (https://www.knot-resolver.cz/) – secure, privacy-aware,
fast DNS(SEC) resolver
Vše pro chleba (https://vseprochleba.cz) – Mouky ze mlýna a potřeby pro
pečení chleba všeho druhu

On Tue, Dec 13, 2016, at 22:27, J G Miller wrote:
> Package: php5-common
> Version: 5.6.28+dfsg-0+deb8u1
> Followup-For: Bug #783246
> 
> Allowing some white space on the priority line before the word priority
> and around the equals sign in the get_priority function would be most
> welcome.
> 
> This strictness results for me in duplicate symlinks with wrong
> priority 20 to keep appearing every time there is an update and
> hourly already loaded mail messages and the need for manual pruning.
> 
> --- php5/php5-helper.orig       2016-12-09 13:26:56.000000000 +0100
> +++ php5/php5-helper            2016-12-09 13:26:56.000000000 +0100
> @@ -132,7 +132,7 @@
>      module_exists $modname || module_ret=$?
> 
>      if [ "$module_ret" -eq 0 ]; then
> -       priority=$(sed -ne "s/^; priority=\([0-9]\+\)$/\\1/p"
> $source_ini)
> +       priority=$(sed -ne
> "s/^;[[:space:]]*priority[[:space:]]*=[[:space:]]*\([0-9]\+\)$/\\1/p"
> $source_ini)
>         [ -z "$priority" ] && priority=20
>         echo $priority
>         return 0
> 
> Incidentally, why the double backslash on the reference 1, viz \\1,
> rather than the normal single backslash \1?
> 
> Thanking your for your support.
> 
> 
> -- Package-specific info:
> ==== Additional PHP 5 information ====
> 
> ++++ PHP 5 SAPI (php5query -S): ++++
> fpm
> cli
> 
> -- System Information:
> Debian Release: 8.6
>   APT prefers stable-updates
>   APT policy: (500, 'stable-updates'), (500, 'stable')
> Architecture: armel (armv5tel)
> 
> Kernel: Linux 3.16.0-4-kirkwood
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=ANSI_X3.4-1968)
> (ignored: LC_ALL set to C)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
> 
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-maint@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint



Reply sent to Debian FTP Masters <ftpmaster@ftp-master.debian.org>:
You have taken responsibility. (Fri, 13 Jan 2017 13:07:04 GMT) (full text, mbox, link).


Notification sent to Goran Miskovic <schkovich@gmail.com>:
Bug acknowledged by developer. (Fri, 13 Jan 2017 13:07:04 GMT) (full text, mbox, link).


Message #20 received at 783246-done@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 413713-done@bugs.debian.org,440775-done@bugs.debian.org,447764-done@bugs.debian.org,500087-done@bugs.debian.org,618462-done@bugs.debian.org,628079-done@bugs.debian.org,639268-done@bugs.debian.org,643282-done@bugs.debian.org,697800-done@bugs.debian.org,715264-done@bugs.debian.org,727143-done@bugs.debian.org,730067-done@bugs.debian.org,731055-done@bugs.debian.org,752100-done@bugs.debian.org,759195-done@bugs.debian.org,760454-done@bugs.debian.org,774154-done@bugs.debian.org,774975-done@bugs.debian.org,776564-done@bugs.debian.org,778596-done@bugs.debian.org,782778-done@bugs.debian.org,783246-done@bugs.debian.org,788060-done@bugs.debian.org,789442-done@bugs.debian.org,789702-done@bugs.debian.org,790472-done@bugs.debian.org,790841-done@bugs.debian.org,792239-done@bugs.debian.org,795572-done@bugs.debian.org,797799-done@bugs.debian.org,799136-done@bugs.debian.org,799851-done@bugs.debian.org,800564-done@bugs.debian.org,801831-done@bugs.debian.org,803260-done@bugs.debian.org,803305-done@bugs.debian.org,805591-done@bugs.debian.org,810244-done@bugs.debian.org,811130-done@bugs.debian.org,814907-done@bugs.debian.org,815794-done@bugs.debian.org,815797-done@bugs.debian.org,817917-done@bugs.debian.org,819139-done@bugs.debian.org,827486-done@bugs.debian.org,828498-done@bugs.debian.org,833133-done@bugs.debian.org,833543-done@bugs.debian.org,834579-done@bugs.debian.org,841618-done@bugs.debian.org,845890-done@bugs.debian.org,846244-done@bugs.debian.org,848661-done@bugs.debian.org,849767-done@bugs.debian.org,664595-done@bugs.debian.org,
Cc: php5@packages.debian.org, php5@packages.qa.debian.org
Subject: Bug#841781: Removed package(s) from unstable
Date: Fri, 13 Jan 2017 13:05:30 +0000
Version: 5.6.26+dfsg-1+rm

Dear submitter,

as the package php5 has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/841781

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 11 Feb 2017 07:32:02 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 02:22:18 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.