Debian Bug report logs - #819139
php5-dev: php-config5 --php-binary gives unversioned result

version graph

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

Reported by: Olly Betts <olly@survex.com>

Date: Thu, 24 Mar 2016 03:27:02 UTC

Severity: normal

Found in version php5/5.6.19+dfsg-2

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, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#819139; Package php5-dev. (Thu, 24 Mar 2016 03:27:05 GMT) (full text, mbox, link).


Acknowledgement sent to Olly Betts <olly@survex.com>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Thu, 24 Mar 2016 03:27:06 GMT) (full text, mbox, link).


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

From: Olly Betts <olly@survex.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: php5-dev: php-config5 --php-binary gives unversioned result
Date: Thu, 24 Mar 2016 03:24:55 +0000
Package: php5-dev
Version: 5.6.19+dfsg-2
Severity: normal

"php-config5 --php-binary" gives "/usr/bin/php" which is a managed by
alternatives.  Currently /usr/bin/php7.0 has the highest priority:

$ update-alternatives --config php
There are 2 choices for the alternative php (providing /usr/bin/php).

  Selection    Path             Priority   Status
------------------------------------------------------------
* 0            /usr/bin/php7.0   70        auto mode
  1            /usr/bin/php5     50        manual mode
  2            /usr/bin/php7.0   70        manual mode

On a system with both php5-cli and php7.0-cli installed (which users who have
installed php-cli will have, since this dependency package has now switched to
pulling in php7.0-cli), the upshot is that you get the wrong PHP interpreter
version:

$ php-config5 --php-binary
/usr/bin/php
$ /usr/bin/php --version
PHP 7.0.4-6 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

Really "php-config5 --php-binary" should give "/usr/bin/php5":

$ /usr/bin/php5 --version
PHP 5.6.19-2 (cli) 
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

It appears that php-config7.0 gets this right:

$ php-config7.0 --php-binary
/usr/bin/php7.0

Cheers,
    Olly

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.3.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages php5-dev depends on:
ii  autoconf      2.69-9
ii  automake      1:1.15-4
ii  libpcre3-dev  2:8.38-3.1
ii  libssl-dev    1.0.2g-1
ii  libtool       2.4.6-0.1
ii  php5-common   5.6.19+dfsg-2
ii  shtool        2.0.8-8

Versions of packages php5-dev recommends:
ii  dh-php5        0.2
ii  pkg-php-tools  1.32

php5-dev suggests no packages.

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#819139; Package php5-dev. (Thu, 24 Mar 2016 09:33: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>. (Thu, 24 Mar 2016 09:33:07 GMT) (full text, mbox, link).


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

From: Ondřej Surý <ondrej@sury.org>
To: Olly Betts <olly@survex.com>, Debian Bug Tracking System <819139@bugs.debian.org>
Subject: Re: [php-maint] Bug#819139: php5-dev: php-config5 --php-binary gives unversioned result
Date: Thu, 24 Mar 2016 10:29:05 +0100
JFTR php5 is not going to be shipped in Debian stretch, so this will get
fixed itself when php5 is removed from the archive.

Cheers,
-- 
Ondřej Surý <ondrej@sury.org>
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server

On Thu, Mar 24, 2016, at 04:24, Olly Betts wrote:
> Package: php5-dev
> Version: 5.6.19+dfsg-2
> Severity: normal
> 
> "php-config5 --php-binary" gives "/usr/bin/php" which is a managed by
> alternatives.  Currently /usr/bin/php7.0 has the highest priority:
> 
> $ update-alternatives --config php
> There are 2 choices for the alternative php (providing /usr/bin/php).
> 
>   Selection    Path             Priority   Status
> ------------------------------------------------------------
> * 0            /usr/bin/php7.0   70        auto mode
>   1            /usr/bin/php5     50        manual mode
>   2            /usr/bin/php7.0   70        manual mode
> 
> On a system with both php5-cli and php7.0-cli installed (which users who
> have
> installed php-cli will have, since this dependency package has now
> switched to
> pulling in php7.0-cli), the upshot is that you get the wrong PHP
> interpreter
> version:
> 
> $ php-config5 --php-binary
> /usr/bin/php
> $ /usr/bin/php --version
> PHP 7.0.4-6 (cli) ( NTS )
> Copyright (c) 1997-2016 The PHP Group
> Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
>     with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend
>     Technologies
> 
> Really "php-config5 --php-binary" should give "/usr/bin/php5":
> 
> $ /usr/bin/php5 --version
> PHP 5.6.19-2 (cli) 
> Copyright (c) 1997-2016 The PHP Group
> Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
>     with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend
>     Technologies
> 
> It appears that php-config7.0 gets this right:
> 
> $ php-config7.0 --php-binary
> /usr/bin/php7.0
> 
> Cheers,
>     Olly
> 
> -- System Information:
> Debian Release: stretch/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
> 
> Kernel: Linux 4.3.0-1-amd64 (SMP w/8 CPU cores)
> Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
> 
> Versions of packages php5-dev depends on:
> ii  autoconf      2.69-9
> ii  automake      1:1.15-4
> ii  libpcre3-dev  2:8.38-3.1
> ii  libssl-dev    1.0.2g-1
> ii  libtool       2.4.6-0.1
> ii  php5-common   5.6.19+dfsg-2
> ii  shtool        2.0.8-8
> 
> Versions of packages php5-dev recommends:
> ii  dh-php5        0.2
> ii  pkg-php-tools  1.32
> 
> php5-dev suggests no packages.
> 
> -- no debconf information
> 
> _______________________________________________
> 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:48 GMT) (full text, mbox, link).


Notification sent to Olly Betts <olly@survex.com>:
Bug acknowledged by developer. (Fri, 13 Jan 2017 13:07:48 GMT) (full text, mbox, link).


Message #15 received at 819139-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:30:29 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:22 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.