Debian Bug report logs - #805222
PECL extensions FTBFS with PHP Fatal error: Call to a member function getFilelist() on null

version graph

Package: php-pear; Maintainer for php-pear is Debian PHP Maintainers <team+pkg-php@tracker.debian.org>; Source for php-pear is src:php-pear (PTS, buildd, popcon).

Affects: php-oauth, php5-apcu, php-memcached, php-rrd, php-zmq, php-gearman, php-imagick, php-propro, php-raphf, php-igbinary, php-msgpack, php-mongo, php-stomp, php-memcache, php-geoip, php-yac, php-gnupg, php-radius, php-mysqlnd-ms, php-horde-lz4, php-pecl-http, php-ssh2

Reported by: "Chris West (Faux)" <solo-debianbugs@goeswhere.com>

Date: Sun, 15 Nov 2015 21:27:01 UTC

Severity: serious

Tags: sid, stretch

Found in versions php5/5.6.15+dfsg-1, php-pear/5.6.16+dfsg-1, php-pear/1:1.10.1+submodules+notgz-1

Fixed in versions php5/5.6.16+dfsg-3, php5/5.6.14+dfsg-1, php-pear/1:1.10.1+submodules+notgz-5

Done: Mathieu Parent <sathieu@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, solo-debianbugs@goeswhere.com, Debian PHP PECL Maintainers <pkg-php-pecl@lists.alioth.debian.org>:
Bug#805222; Package src:php-apcu. (Sun, 15 Nov 2015 21:27:05 GMT) (full text, mbox, link).


Acknowledgement sent to "Chris West (Faux)" <solo-debianbugs@goeswhere.com>:
New Bug report received and forwarded. Copy sent to solo-debianbugs@goeswhere.com, Debian PHP PECL Maintainers <pkg-php-pecl@lists.alioth.debian.org>. (Sun, 15 Nov 2015 21:27:05 GMT) (full text, mbox, link).


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

From: "Chris West (Faux)" <solo-debianbugs@goeswhere.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: php-apcu: FTBFS: PHP Fatal error: Call to a member function getFilelist() on null
Date: Sun, 15 Nov 2015 21:18:29 +0000
Source: php-apcu
Version: 4.0.7-1
Severity: serious
Justification: fails to build from source
Tags: sid stretch
User: reproducible-builds@lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-CC: reproducible-builds@lists.alioth.debian.org

Dear Maintainer,

The package fails to build:

	/usr/bin/pear -c debian/pearrc -d download_dir=/tmp -d include_path=/usr/share/php -d php_bin=/usr/bin/php -d bin_dir=/usr/bin -d php_dir=/usr/share/php -d data_dir=/usr/share/php/data -d doc_dir=/usr/share/doc/php5-apcu -d test_dir=/usr/share/php/tests install --offline --nodeps -P /php-apcu-4.0.7/debian/php5-apcu --nobuild ./apcu-4.0.7/package.xml
PHP Fatal error:  Call to a member function getFilelist() on null in /usr/share/php/PEAR/Command/Install.php on line 747
dh_auto_install: /usr/bin/pear -c debian/pearrc -d download_dir=/tmp -d include_path=/usr/share/php -d php_bin=/usr/bin/php -d bin_dir=/usr/bin -d php_dir=/usr/share/php -d data_dir=/usr/share/php/data -d doc_dir=/usr/share/doc/php5-apcu -d test_dir=/usr/share/php/tests install --offline --nodeps -P /php-apcu-4.0.7/debian/php5-apcu --nobuild ./apcu-4.0.7/package.xml returned exit code 255
debian/rules:9: recipe for target 'override_dh_auto_install' failed
make[1]: *** [override_dh_auto_install] Error 10
make[1]: Leaving directory '/php-apcu-4.0.7'

Full build log:
https://reproducible.debian.net/rb-pkg/unstable/amd64/php-apcu.html

-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)



Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP PECL Maintainers <pkg-php-pecl@lists.alioth.debian.org>:
Bug#805222; Package src:php-apcu. (Mon, 07 Dec 2015 16:24:04 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 PECL Maintainers <pkg-php-pecl@lists.alioth.debian.org>. (Mon, 07 Dec 2015 16:24:04 GMT) (full text, mbox, link).


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

From: Ondřej Surý <ondrej@sury.org>
To: Chris West <solo-debianbugs@goeswhere.com> (Faux), Debian Bug Tracking System <805222@bugs.debian.org>, Mathieu Parent <sathieu@debian.org>
Cc: Remi Collet <remi@fedoraproject.org>, Petr Gajdos <pgajdos@suse.cz>
Subject: Re: [Pkg-php-pecl] Bug#805222: php-apcu: FTBFS: PHP Fatal error: Call to a member function getFilelist() on null
Date: Mon, 07 Dec 2015 17:21:00 +0100
Control: reassign -1 php-pear
Control: found -1 php-pear/5.6.16+dfsg-1
Control: affects -1 php5-apcu

Hi,

thank you for the report, after some debugging it seems this is a
generic error in PEAR instead of bug just in the php-apcu. This should
not affect no users, but it probably broke all PHP extensions, since it
stops honoring packagingroot after calling PEAR_Registry->setConfig()

I have a fix ready and PHP building, and I am ccing Fedora and SuSE
maintainers.

Mathieu, this also applies to your standalone src:php-pear:

diff --git a/PEAR/Command/Install.php b/PEAR/Command/Install.php
index 9d572ed..3b1fec9 100644
--- a/PEAR/Command/Install.php
+++ b/PEAR/Command/Install.php
@@ -848,7 +848,7 @@ Run post-installation scripts in package <package>,
if any exist.
             $pkg = &$instreg->getPackage($param->getPackage(),
             $param->getChannel());
             // $pkg may be NULL if install is a 'fake' install via
             --packagingroot
             if (is_object($pkg)) {
-                $pkg->setConfig($this->config);
+                $pkg->setConfig($this->config, false);
                 if ($list = $pkg->listPostinstallScripts()) {
                     $pn =
                     $reg->parsedPackageNameToString(array('channel' =>
                        $param->getChannel(), 'package' =>
                        $param->getPackage()), true);


This fixes the issue right now, but it should be probably reported
upstream to have a correct fix (since this might break other stuff :)),
but my PEAR account doesn't work right now, so it might take me a while
to report this to upstream.

Cheers,
Ondrej

On Sun, Nov 15, 2015, at 22:18, Chris West (Faux) wrote:
> Source: php-apcu
> Version: 4.0.7-1
> Severity: serious
> Justification: fails to build from source
> Tags: sid stretch
> User: reproducible-builds@lists.alioth.debian.org
> Usertags: ftbfs
> X-Debbugs-CC: reproducible-builds@lists.alioth.debian.org
> 
> Dear Maintainer,
> 
> The package fails to build:
> 
> 	/usr/bin/pear -c debian/pearrc -d download_dir=/tmp -d include_path=/usr/share/php -d php_bin=/usr/bin/php -d bin_dir=/usr/bin -d php_dir=/usr/share/php -d data_dir=/usr/share/php/data -d doc_dir=/usr/share/doc/php5-apcu -d test_dir=/usr/share/php/tests install --offline --nodeps -P /php-apcu-4.0.7/debian/php5-apcu --nobuild ./apcu-4.0.7/package.xml
> PHP Fatal error:  Call to a member function getFilelist() on null in
> /usr/share/php/PEAR/Command/Install.php on line 747
> dh_auto_install: /usr/bin/pear -c debian/pearrc -d download_dir=/tmp -d
> include_path=/usr/share/php -d php_bin=/usr/bin/php -d bin_dir=/usr/bin
> -d php_dir=/usr/share/php -d data_dir=/usr/share/php/data -d
> doc_dir=/usr/share/doc/php5-apcu -d test_dir=/usr/share/php/tests install
> --offline --nodeps -P /php-apcu-4.0.7/debian/php5-apcu --nobuild
> ./apcu-4.0.7/package.xml returned exit code 255
> debian/rules:9: recipe for target 'override_dh_auto_install' failed
> make[1]: *** [override_dh_auto_install] Error 10
> make[1]: Leaving directory '/php-apcu-4.0.7'
> 
> Full build log:
> https://reproducible.debian.net/rb-pkg/unstable/amd64/php-apcu.html
> 
> -- System Information:
> Debian Release: stretch/sid
> APT prefers unstable
> APT policy: (500, 'unstable')
> Architecture: amd64 (x86_64)
> 
> _______________________________________________
> Pkg-php-pecl mailing list
> Pkg-php-pecl@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-pecl


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



Bug reassigned from package 'src:php-apcu' to 'php-pear'. Request was from Ondřej Surý <ondrej@sury.org> to 805222-submit@bugs.debian.org. (Mon, 07 Dec 2015 16:24:04 GMT) (full text, mbox, link).


No longer marked as found in versions php-apcu/4.0.7-1. Request was from Ondřej Surý <ondrej@sury.org> to 805222-submit@bugs.debian.org. (Mon, 07 Dec 2015 16:24:05 GMT) (full text, mbox, link).


Marked as found in versions php-pear/5.6.16+dfsg-1. Request was from Ondřej Surý <ondrej@sury.org> to 805222-submit@bugs.debian.org. (Mon, 07 Dec 2015 16:24:06 GMT) (full text, mbox, link).


Added indication that 805222 affects php5-apcu Request was from Ondřej Surý <ondrej@sury.org> to 805222-submit@bugs.debian.org. (Mon, 07 Dec 2015 16:24:07 GMT) (full text, mbox, link).


Reply sent to Ondřej Surý <ondrej@debian.org>:
You have taken responsibility. (Mon, 07 Dec 2015 18:33:23 GMT) (full text, mbox, link).


Notification sent to "Chris West (Faux)" <solo-debianbugs@goeswhere.com>:
Bug acknowledged by developer. (Mon, 07 Dec 2015 18:33:23 GMT) (full text, mbox, link).


Message #23 received at 805222-close@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@debian.org>
To: 805222-close@bugs.debian.org
Subject: Bug#805222: fixed in php5 5.6.16+dfsg-2
Date: Mon, 07 Dec 2015 18:29:15 +0000
Source: php5
Source-Version: 5.6.16+dfsg-2

We believe that the bug you reported is fixed in the latest version of
php5, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 805222@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ondřej Surý <ondrej@debian.org> (supplier of updated php5 package)

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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 07 Dec 2015 17:15:51 +0100
Source: php5
Binary: php5 php5-common libapache2-mod-php5 libapache2-mod-php5filter php5-cgi php5-cli php5-phpdbg php5-fpm libphp5-embed php5-dev php5-dbg php-pear php5-curl php5-enchant php5-gd php5-gmp php5-imap php5-interbase php5-intl php5-ldap php5-mcrypt php5-readline php5-mysql php5-mysqlnd php5-odbc php5-pgsql php5-pspell php5-recode php5-snmp php5-sqlite php5-sybase php5-tidy php5-xmlrpc php5-xsl
Architecture: source amd64 all
Version: 5.6.16+dfsg-2
Distribution: unstable
Urgency: medium
Maintainer: Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>
Changed-By: Ondřej Surý <ondrej@debian.org>
Description:
 libapache2-mod-php5 - server-side, HTML-embedded scripting language (Apache 2 module)
 libapache2-mod-php5filter - server-side, HTML-embedded scripting language (apache 2 filter mo
 libphp5-embed - HTML-embedded scripting language (Embedded SAPI library)
 php-pear   - PEAR - PHP Extension and Application Repository
 php5       - server-side, HTML-embedded scripting language (metapackage)
 php5-cgi   - server-side, HTML-embedded scripting language (CGI binary)
 php5-cli   - command-line interpreter for the php5 scripting language
 php5-common - Common files for packages built from the php5 source
 php5-curl  - CURL module for php5
 php5-dbg   - Debug symbols for PHP5
 php5-dev   - Files for PHP5 module development
 php5-enchant - Enchant module for php5
 php5-fpm   - server-side, HTML-embedded scripting language (FPM-CGI binary)
 php5-gd    - GD module for php5
 php5-gmp   - GMP module for php5
 php5-imap  - IMAP module for php5
 php5-interbase - interbase/firebird module for php5
 php5-intl  - internationalisation module for php5
 php5-ldap  - LDAP module for php5
 php5-mcrypt - MCrypt module for php5
 php5-mysql - MySQL module for php5
 php5-mysqlnd - MySQL module for php5 (Native Driver)
 php5-odbc  - ODBC module for php5
 php5-pgsql - PostgreSQL module for php5
 php5-phpdbg - server-side, HTML-embedded scripting language (PHPDBG binary)
 php5-pspell - pspell module for php5
 php5-readline - Readline module for php5
 php5-recode - recode module for php5
 php5-snmp  - SNMP module for php5
 php5-sqlite - SQLite module for php5
 php5-sybase - Sybase / MS SQL Server module for php5
 php5-tidy  - tidy module for php5
 php5-xmlrpc - XML-RPC module for php5
 php5-xsl   - XSL module for php5
Closes: 805222
Changes:
 php5 (5.6.16+dfsg-2) unstable; urgency=medium
 .
   [ Jan Wagner ]
   * Adding 'PHP_INI_SCAN_DIR=/etc/php5/${conf_dir}/conf.d/' to session
     cleanup script when calling php
 .
   [ Ondřej Surý ]
   * Add patch to not reset packagingroot inside PEAR/Command/Install.php
     (Closes: #805222)
Checksums-Sha1:
 b989ef37830a9f90b23a5165804c4b5bbea04e8e 5199 php5_5.6.16+dfsg-2.dsc
 79d8181156bc17c163e694bb881f49dd3435cd0e 124992 php5_5.6.16+dfsg-2.debian.tar.xz
 fc6508b7ac63830713c465bed10a035a898f2b7b 2209374 libapache2-mod-php5_5.6.16+dfsg-2_amd64.deb
 15e243fa2c13eb10699e8bf01f515a2720133b05 2201884 libapache2-mod-php5filter_5.6.16+dfsg-2_amd64.deb
 7eaee04001a569ddebd0b97b0f52feae72a50147 2208982 libphp5-embed_5.6.16+dfsg-2_amd64.deb
 3a94e62fb8580384bc3c63aef53308ebf45dc38e 263780 php-pear_5.6.16+dfsg-2_all.deb
 83f1dab4c9e672185bf1285a9d7e6707eba29e09 4275794 php5-cgi_5.6.16+dfsg-2_amd64.deb
 9cc964344e93ed2daabfaf5cffee16b2be48cae5 2170800 php5-cli_5.6.16+dfsg-2_amd64.deb
 6c7f5c4a3ea0f4c823829fc615a4901311aa14ad 725844 php5-common_5.6.16+dfsg-2_amd64.deb
 a2f24e80f969bd6d42710057d70dedc263d0cc1c 27648 php5-curl_5.6.16+dfsg-2_amd64.deb
 ac02017ff1447970e930dbefc3e74c7f61a956a7 48217880 php5-dbg_5.6.16+dfsg-2_amd64.deb
 9f1d0f2cddd9139d1cd75676bcf8484a21bb5544 355850 php5-dev_5.6.16+dfsg-2_amd64.deb
 ac1f60fd7d4c68fd23215956e78ff90553e07ebc 9190 php5-enchant_5.6.16+dfsg-2_amd64.deb
 916070aadeae41c83c7597c98e8ac8474623e0b2 2192564 php5-fpm_5.6.16+dfsg-2_amd64.deb
 7e5abfa7dceedef9d72378a82bc273f2d2980a9b 28614 php5-gd_5.6.16+dfsg-2_amd64.deb
 aea375338cfabe7eee078c8d7cdfc8061070920f 21662 php5-gmp_5.6.16+dfsg-2_amd64.deb
 d9c3229ccc4f5b5b930a6c425766a831dc2f0c83 30772 php5-imap_5.6.16+dfsg-2_amd64.deb
 58eb7d9cd39b4c4a0fb31f350dadea218071f622 42516 php5-interbase_5.6.16+dfsg-2_amd64.deb
 6f49cf51f499f3872daa17d383926b8077e51e89 111662 php5-intl_5.6.16+dfsg-2_amd64.deb
 9cf17886b44ed130eb11ccc2995b894451d31b20 22084 php5-ldap_5.6.16+dfsg-2_amd64.deb
 30996eb16b77b9333e83ed51ecad347fa92d742e 15180 php5-mcrypt_5.6.16+dfsg-2_amd64.deb
 c871f895f0f61ce30c48716528dfe3d4469e1005 64738 php5-mysql_5.6.16+dfsg-2_amd64.deb
 48b9c6951b8150e98c4df885bae7f479d40a9f3f 140676 php5-mysqlnd_5.6.16+dfsg-2_amd64.deb
 6a78b8b97c07766818055aafe56122336f95ea7c 31626 php5-odbc_5.6.16+dfsg-2_amd64.deb
 762fd56708028d885e8f3db001d61bf58dcdd154 56928 php5-pgsql_5.6.16+dfsg-2_amd64.deb
 83dc673f5502ade822884d6bdc94dd3846ca4bf0 2188240 php5-phpdbg_5.6.16+dfsg-2_amd64.deb
 b06e926ee346eb2ab87f50049b3e7ab8b726c1bd 8148 php5-pspell_5.6.16+dfsg-2_amd64.deb
 74c32806c99d365aec60772658a0123fbe0d1e31 13104 php5-readline_5.6.16+dfsg-2_amd64.deb
 77f29f0b3b06df8051282960156ab53870191d44 5500 php5-recode_5.6.16+dfsg-2_amd64.deb
 867364b1921a99fa0ed65d62695f46c8a9c15de7 19396 php5-snmp_5.6.16+dfsg-2_amd64.deb
 ed9cee84a4d1e1bba01a1261046f612f97130cab 24472 php5-sqlite_5.6.16+dfsg-2_amd64.deb
 51185cc7b94e1250d43dc21aa7b48b07e7e91094 24202 php5-sybase_5.6.16+dfsg-2_amd64.deb
 4db752b8b82b0050e41c17e6972aced29df3b9e6 16638 php5-tidy_5.6.16+dfsg-2_amd64.deb
 91c94f43fce6aa7a97dab1993877673eeef11294 35634 php5-xmlrpc_5.6.16+dfsg-2_amd64.deb
 a5b2c589ad451eedb1e09c2dd38a4b0c3f97760a 13838 php5-xsl_5.6.16+dfsg-2_amd64.deb
 57bb24d089f9a553d1eb14bf565f7c5c431262c2 1254 php5_5.6.16+dfsg-2_all.deb
Checksums-Sha256:
 a417eeb25178e89925d3722c54efec10e4d41d934e3cf0bf80ea97cbda85fc33 5199 php5_5.6.16+dfsg-2.dsc
 bc1991d60585cc4c3410b2eaedc680fac6fbfc2bcbf31c76143bfe58b0f9db8e 124992 php5_5.6.16+dfsg-2.debian.tar.xz
 a383561ddfcfa46eccf5794372029da0e9f533a35c0d8140b6aaba16c1e53222 2209374 libapache2-mod-php5_5.6.16+dfsg-2_amd64.deb
 c86cf1ae7dedf274edab9f4b1b7557e769bd6af88506a7f0f0a7ea4a3d001e25 2201884 libapache2-mod-php5filter_5.6.16+dfsg-2_amd64.deb
 1e1c51536935b238b33e0b792cf83a509780bafe9f099e127743065aabae9f81 2208982 libphp5-embed_5.6.16+dfsg-2_amd64.deb
 9005a9a33ed3634b3531194e288460c984bc0141097dbd3ccca88e9d6831937d 263780 php-pear_5.6.16+dfsg-2_all.deb
 cf724309eb1e6416f24e695b39c7753b0283509dac4fb1ec70d30908891b5def 4275794 php5-cgi_5.6.16+dfsg-2_amd64.deb
 69163c7d45b4191c71dafd587ee0a0dea1681643aeb59d5d92ca4632d00095da 2170800 php5-cli_5.6.16+dfsg-2_amd64.deb
 a86889e8d9b1b5b59bdc4568c767fbe699b3ab610627a029f582e82515076a76 725844 php5-common_5.6.16+dfsg-2_amd64.deb
 f6502f907af9e4865dc55f291d115e2a53543c08c44f382e43267cc9b0072248 27648 php5-curl_5.6.16+dfsg-2_amd64.deb
 613dd6d4f236415ce6710deb431fd4d98faef1b870756342459cb8ba0a0dac1a 48217880 php5-dbg_5.6.16+dfsg-2_amd64.deb
 376e2a2de60ecd37cc7350a9f0573d3bf827e6e0671d3da01086b50b12e80158 355850 php5-dev_5.6.16+dfsg-2_amd64.deb
 363bce60193c8f51c08f73c979483231803010700fd42859fea998d4b6fce21f 9190 php5-enchant_5.6.16+dfsg-2_amd64.deb
 87e835b4a5d2afcf9ce4af011801155620b4e6bcad1f6a8281264711debd7091 2192564 php5-fpm_5.6.16+dfsg-2_amd64.deb
 c23af09acdee4fdbac8cd514b4bf26e9fd26853047020827af303ceef8fe6ca5 28614 php5-gd_5.6.16+dfsg-2_amd64.deb
 fb9396edb8a3e95381eaff7721768262c6639b554b8037b158491d1444a04b95 21662 php5-gmp_5.6.16+dfsg-2_amd64.deb
 983fdc39f58dc276592f03819d71c6ca274ea705ab66632f148f4fddd0afed00 30772 php5-imap_5.6.16+dfsg-2_amd64.deb
 48703c8514d0770aa99c5d4c92847361c05d89052fba506478043992fd07067a 42516 php5-interbase_5.6.16+dfsg-2_amd64.deb
 08f735fedec658041db58690c71123cd48e696226b1ec026c14028b94084d0ce 111662 php5-intl_5.6.16+dfsg-2_amd64.deb
 483d46ebfa6b9041c63434d401b3fa5af597759018fbcac6a82fb4369701123e 22084 php5-ldap_5.6.16+dfsg-2_amd64.deb
 32a2efe9b4b7557c4bd50d1e4451458bd5f59bf429a0971a70c779486405f5c8 15180 php5-mcrypt_5.6.16+dfsg-2_amd64.deb
 ada1867d89e71f7ad7cc7778330b7249d69ca56722ce62221b5de9ad31ad3561 64738 php5-mysql_5.6.16+dfsg-2_amd64.deb
 5ed1cf26df2c57100a1c5dd7dc9b51664c323e4580c578c00c14cf57ce0633a7 140676 php5-mysqlnd_5.6.16+dfsg-2_amd64.deb
 f7786b41b7f345ceefedec30a9d690f7bbede5fe0759cd5608eb3098c0c01431 31626 php5-odbc_5.6.16+dfsg-2_amd64.deb
 0eb29213f76b85e82c9104fbec8f9485408d181219b3bda8ddbda6af437be8d5 56928 php5-pgsql_5.6.16+dfsg-2_amd64.deb
 f2c05cf7ad5efd428793f5773524bb1dcfafa6a627faa6d7554b0674cda3e9cd 2188240 php5-phpdbg_5.6.16+dfsg-2_amd64.deb
 7e1083e94db24e47a3bfc2f0a48e54efc17fd4972eecb8f3d4e8e24ecf63e675 8148 php5-pspell_5.6.16+dfsg-2_amd64.deb
 b236f84dbfabab396ef6f353c9f9e0a9069bfc0f1f7f025995444397644129f9 13104 php5-readline_5.6.16+dfsg-2_amd64.deb
 c759244ddbab5af27eb75250e1ba6ab9a15ec24583fee1b8da1eab035dc31704 5500 php5-recode_5.6.16+dfsg-2_amd64.deb
 35045e3e03f36a098531129aaacdc6244536852ab41d4d3549ffb5fe999f4f67 19396 php5-snmp_5.6.16+dfsg-2_amd64.deb
 6a067b459d7f975fb15206dde19e77af89f5ab5d05d7d840068ddd3dbbbc4dd0 24472 php5-sqlite_5.6.16+dfsg-2_amd64.deb
 29c1005db9966e712c6ce34bf13864442457655e516fb4b8d2dcf69bb098a63a 24202 php5-sybase_5.6.16+dfsg-2_amd64.deb
 1b2cbb11bbe9ed4685faa8ae59097750b040a04fd31a16fa71508c6c87349baa 16638 php5-tidy_5.6.16+dfsg-2_amd64.deb
 2fc72eaaff18a435f9828788d4804f002689c0188e19b563fc9854f6f22b2463 35634 php5-xmlrpc_5.6.16+dfsg-2_amd64.deb
 47ae26c784457e68ab48f938f7dcc69be95260c4362c8d7937ed64be51037dcb 13838 php5-xsl_5.6.16+dfsg-2_amd64.deb
 529346ea1ce27cd0acfcd70486c25999f288379261ac892d2366f173ca6f9d36 1254 php5_5.6.16+dfsg-2_all.deb
Files:
 4937a3ece99f173f2b0dc31178b09670 5199 php optional php5_5.6.16+dfsg-2.dsc
 04ddf4252fb6e875cd2c1a4b340e1fce 124992 php optional php5_5.6.16+dfsg-2.debian.tar.xz
 2f8d336911e080a6ae4fa23267f88527 2209374 httpd optional libapache2-mod-php5_5.6.16+dfsg-2_amd64.deb
 484ce32f00d5857323a4637d88517860 2201884 httpd extra libapache2-mod-php5filter_5.6.16+dfsg-2_amd64.deb
 faac01ed69752fb242a2a5ad1743116f 2208982 php optional libphp5-embed_5.6.16+dfsg-2_amd64.deb
 bc1f3b8da3abc769fd6142b636d997c9 263780 php optional php-pear_5.6.16+dfsg-2_all.deb
 afd79bd40bb669eeac71583ebd6825a8 4275794 php optional php5-cgi_5.6.16+dfsg-2_amd64.deb
 97eb9749d66c0532a187561fa1f884e9 2170800 php optional php5-cli_5.6.16+dfsg-2_amd64.deb
 5445a5e5049d47a59aa398d97b08b7c3 725844 php optional php5-common_5.6.16+dfsg-2_amd64.deb
 03ddc328733907dbcf27ab2b5a873e52 27648 php optional php5-curl_5.6.16+dfsg-2_amd64.deb
 47c99c1427b8ab5a6415b2a3f5d49fef 48217880 debug extra php5-dbg_5.6.16+dfsg-2_amd64.deb
 441a996085caac2097db4f244beb2805 355850 php optional php5-dev_5.6.16+dfsg-2_amd64.deb
 ee1facfb0c180e4e104014ed497abda9 9190 php optional php5-enchant_5.6.16+dfsg-2_amd64.deb
 8a366979459c5973f00e617d09bf667a 2192564 php optional php5-fpm_5.6.16+dfsg-2_amd64.deb
 d25a0bd9f5cdb44df7bbea93ed44f744 28614 php optional php5-gd_5.6.16+dfsg-2_amd64.deb
 398e56ac8dbc8ef3fc68e8eed552015d 21662 php optional php5-gmp_5.6.16+dfsg-2_amd64.deb
 30eb36438f63d95d432baa6531b93629 30772 php optional php5-imap_5.6.16+dfsg-2_amd64.deb
 c70e0e13abe8410cea115e977baba070 42516 php optional php5-interbase_5.6.16+dfsg-2_amd64.deb
 82970ee54a6de853f36a522fc365dbbb 111662 php optional php5-intl_5.6.16+dfsg-2_amd64.deb
 c57537282c8e0e2dd4315f590a98ad4f 22084 php optional php5-ldap_5.6.16+dfsg-2_amd64.deb
 bbac1ac4cdc92500ab7be6ec9d0c6ab5 15180 php optional php5-mcrypt_5.6.16+dfsg-2_amd64.deb
 0bc9e85cd98ea2a02177eb5ac3bd6f45 64738 php optional php5-mysql_5.6.16+dfsg-2_amd64.deb
 ce21c2c3c29d5b7f9befa64fda78250e 140676 php extra php5-mysqlnd_5.6.16+dfsg-2_amd64.deb
 f58702b7606872a36388af898aa05d1a 31626 php optional php5-odbc_5.6.16+dfsg-2_amd64.deb
 393de4a232264abeebc135a27b2a94dc 56928 php optional php5-pgsql_5.6.16+dfsg-2_amd64.deb
 8b0c62e457a69905d1c6ee18f352dc9f 2188240 php optional php5-phpdbg_5.6.16+dfsg-2_amd64.deb
 f99771c4698a4a9221ee4fb2032712d3 8148 php optional php5-pspell_5.6.16+dfsg-2_amd64.deb
 8ae873737d5ebaf2d924f1179759740e 13104 php optional php5-readline_5.6.16+dfsg-2_amd64.deb
 b68a823ac211d1fc640e3a4d8e105a09 5500 php optional php5-recode_5.6.16+dfsg-2_amd64.deb
 d365445a52eeef4cfabe257fbd5a87cc 19396 php optional php5-snmp_5.6.16+dfsg-2_amd64.deb
 723a07c27ca7a3beb38cc8aec75bc1ec 24472 php optional php5-sqlite_5.6.16+dfsg-2_amd64.deb
 b73b604a47bcf7b1465ac02537ac3e24 24202 php optional php5-sybase_5.6.16+dfsg-2_amd64.deb
 43d3c006829f87bbba663a1057fe046a 16638 php optional php5-tidy_5.6.16+dfsg-2_amd64.deb
 46d810e1af328a3fa9cf692d6f931d2b 35634 php optional php5-xmlrpc_5.6.16+dfsg-2_amd64.deb
 5c96de174211c71c370b746aa37179ac 13838 php optional php5-xsl_5.6.16+dfsg-2_amd64.deb
 f87c1ee34a6bd2d58fffdd30984205cd 1254 php optional php5_5.6.16+dfsg-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQJ8BAEBCgBmBQJWZbdxXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzMEI5MzNEODBGQ0UzRDk4MUEyRDM4RkIw
Qzk5QjcwRUY0RkNCQjA3AAoJEAyZtw70/LsHRJAP/02Swhsc1IDioCACqqWS1bTn
ibAX8epmoZAmfI+daOr79JygQBLZl1BMj8vMF5pz/F7QKxZvIy+0is5vDfOxUZsZ
IvpjiyvcEhFh7NhzHwy8BhXADMC0GJUiw2ksfZ+f6dr4smqQ1m1dAxE2b0kb+Bwh
qGcRSh1U/R1L4WzyfLBpIYDLVI4GB0YXN5qdoog8MWDMWUhn6qAMZeMQJQWbz2Cd
OpseOxYmHpW7LIkJY+nOtyInr1W/60chJwIPTliJAtWCkwOnSdyvn2lE+hd/Va6u
Y7q4v0UjGcgiG4TgubaHsdOTmLK2sEcW60ZdvJ13RK+ZZD1kw/q3sD16z2Kkclsv
HsQRVnFzCOGxYlGWjfw+iBtjkyjHVylIWbDNkB8Za6Zo5SRzWG0pH/4pWl0wD0pf
xujIP/liVYyoDepuIh3pvleMI7+Dc9oaLbHl/HL70vwE9w508w8b8UsUH2BFpaCD
wgfshnX0FME7X7JUWlUtJMF3d9wcz6SRJAoYsCIIhAeOK7HkeZHShGJlZKRDU2mv
DqVkXu6Fec+RJlYoG/aiNq3QaVNCQ4fITsSnPDgpkymDnnlIXOp4iiENq+YxO5OK
yyHSjZJP+lV3bDapqi6DWrKkKA3BZjIELuxrbyQwlNqMQchmPGTy7F9PZEbdIYBS
Wdg8DdgPmxiqKd5UzaDZ
=Wl/6
-----END PGP SIGNATURE-----




Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#805222; Package php-pear. (Mon, 07 Dec 2015 20:36:04 GMT) (full text, mbox, link).


Acknowledgement sent to "Mathieu Parent (Debian)" <sathieu@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Mon, 07 Dec 2015 20:36:04 GMT) (full text, mbox, link).


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

From: "Mathieu Parent (Debian)" <sathieu@debian.org>
To: Ondřej Surý <ondrej@sury.org>
Cc: Chris West <solo-debianbugs@goeswhere.com>, Debian Bug Tracking System <805222@bugs.debian.org>, Remi Collet <remi@fedoraproject.org>, Petr Gajdos <pgajdos@suse.cz>
Subject: Re: [Pkg-php-pecl] Bug#805222: php-apcu: FTBFS: PHP Fatal error: Call to a member function getFilelist() on null
Date: Mon, 7 Dec 2015 21:26:29 +0100
2015-12-07 17:21 GMT+01:00 Ondřej Surý <ondrej@sury.org>:
> Control: reassign -1 php-pear
> Control: found -1 php-pear/5.6.16+dfsg-1
> Control: affects -1 php5-apcu
>
> Hi,
>
> thank you for the report, after some debugging it seems this is a
> generic error in PEAR instead of bug just in the php-apcu. This should
> not affect no users, but it probably broke all PHP extensions, since it
> stops honoring packagingroot after calling PEAR_Registry->setConfig()
>
> I have a fix ready and PHP building, and I am ccing Fedora and SuSE
> maintainers.
>
> Mathieu, this also applies to your standalone src:php-pear:

OK thanks.

> diff --git a/PEAR/Command/Install.php b/PEAR/Command/Install.php
> index 9d572ed..3b1fec9 100644
> --- a/PEAR/Command/Install.php
> +++ b/PEAR/Command/Install.php
> @@ -848,7 +848,7 @@ Run post-installation scripts in package <package>,
> if any exist.
>              $pkg = &$instreg->getPackage($param->getPackage(),
>              $param->getChannel());
>              // $pkg may be NULL if install is a 'fake' install via
>              --packagingroot
>              if (is_object($pkg)) {
> -                $pkg->setConfig($this->config);
> +                $pkg->setConfig($this->config, false);
>                  if ($list = $pkg->listPostinstallScripts()) {
>                      $pn =
>                      $reg->parsedPackageNameToString(array('channel' =>
>                         $param->getChannel(), 'package' =>
>                         $param->getPackage()), true);
>
>
> This fixes the issue right now, but it should be probably reported
> upstream to have a correct fix (since this might break other stuff :)),
> but my PEAR account doesn't work right now, so it might take me a while
> to report this to upstream.

You can propose a PR instead: https://github.com/pear/pear-core/pulls

Cheers
-- 
Mathieu Parent



Bug reopened Request was from Ondřej Surý <ondrej@debian.org> to control@bugs.debian.org. (Tue, 08 Dec 2015 11:21:04 GMT) (full text, mbox, link).


No longer marked as fixed in versions php5/5.6.16+dfsg-2. Request was from Ondřej Surý <ondrej@debian.org> to control@bugs.debian.org. (Tue, 08 Dec 2015 11:21:05 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#805222; Package php-pear. (Tue, 08 Dec 2015 11:24:04 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>. (Tue, 08 Dec 2015 11:24:04 GMT) (full text, mbox, link).


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

From: Ondřej Surý <ondrej@sury.org>
To: Debian Bug Tracking System <805222@bugs.debian.org>, Mathieu Parent <sathieu@debian.org>
Subject: Re: [Pkg-php-pecl] Bug#805222: php-apcu: FTBFS: PHP Fatal error: Call to a member function getFilelist() on null
Date: Tue, 08 Dec 2015 12:21:13 +0100
JFTR this is not a correct fix and we need upstream to fix that, because
there are two different approaches of handling packagingroot at
different places and this is the main reason why it's causing the
errors.

PEAR_Command_Install is directly mangling the variables (channelsdir,
etc.), but the code below resets this to default value by calling
PEAR_Config::setInstallRoot($options['packagingroot']) followed by
PEAR_Config::setInstallRoot(false). This needs to be made consistent.

Cheers,
Ondrej

On Mon, Dec 7, 2015, at 17:21, Ondřej Surý wrote:
> Control: reassign -1 php-pear
> Control: found -1 php-pear/5.6.16+dfsg-1
> Control: affects -1 php5-apcu
> 
> Hi,
> 
> thank you for the report, after some debugging it seems this is a
> generic error in PEAR instead of bug just in the php-apcu. This should
> not affect no users, but it probably broke all PHP extensions, since it
> stops honoring packagingroot after calling PEAR_Registry->setConfig()
> 
> I have a fix ready and PHP building, and I am ccing Fedora and SuSE
> maintainers.
> 
> Mathieu, this also applies to your standalone src:php-pear:
> 
> diff --git a/PEAR/Command/Install.php b/PEAR/Command/Install.php
> index 9d572ed..3b1fec9 100644
> --- a/PEAR/Command/Install.php
> +++ b/PEAR/Command/Install.php
> @@ -848,7 +848,7 @@ Run post-installation scripts in package <package>,
> if any exist.
>              $pkg = &$instreg->getPackage($param->getPackage(),
>              $param->getChannel());
>              // $pkg may be NULL if install is a 'fake' install via
>              --packagingroot
>              if (is_object($pkg)) {
> -                $pkg->setConfig($this->config);
> +                $pkg->setConfig($this->config, false);
>                  if ($list = $pkg->listPostinstallScripts()) {
>                      $pn =
>                      $reg->parsedPackageNameToString(array('channel' =>
>                         $param->getChannel(), 'package' =>
>                         $param->getPackage()), true);
> 
> 
> This fixes the issue right now, but it should be probably reported
> upstream to have a correct fix (since this might break other stuff :)),
> but my PEAR account doesn't work right now, so it might take me a while
> to report this to upstream.
> 
> Cheers,
> Ondrej
> 
> On Sun, Nov 15, 2015, at 22:18, Chris West (Faux) wrote:
> > Source: php-apcu
> > Version: 4.0.7-1
> > Severity: serious
> > Justification: fails to build from source
> > Tags: sid stretch
> > User: reproducible-builds@lists.alioth.debian.org
> > Usertags: ftbfs
> > X-Debbugs-CC: reproducible-builds@lists.alioth.debian.org
> > 
> > Dear Maintainer,
> > 
> > The package fails to build:
> > 
> > 	/usr/bin/pear -c debian/pearrc -d download_dir=/tmp -d include_path=/usr/share/php -d php_bin=/usr/bin/php -d bin_dir=/usr/bin -d php_dir=/usr/share/php -d data_dir=/usr/share/php/data -d doc_dir=/usr/share/doc/php5-apcu -d test_dir=/usr/share/php/tests install --offline --nodeps -P /php-apcu-4.0.7/debian/php5-apcu --nobuild ./apcu-4.0.7/package.xml
> > PHP Fatal error:  Call to a member function getFilelist() on null in
> > /usr/share/php/PEAR/Command/Install.php on line 747
> > dh_auto_install: /usr/bin/pear -c debian/pearrc -d download_dir=/tmp -d
> > include_path=/usr/share/php -d php_bin=/usr/bin/php -d bin_dir=/usr/bin
> > -d php_dir=/usr/share/php -d data_dir=/usr/share/php/data -d
> > doc_dir=/usr/share/doc/php5-apcu -d test_dir=/usr/share/php/tests install
> > --offline --nodeps -P /php-apcu-4.0.7/debian/php5-apcu --nobuild
> > ./apcu-4.0.7/package.xml returned exit code 255
> > debian/rules:9: recipe for target 'override_dh_auto_install' failed
> > make[1]: *** [override_dh_auto_install] Error 10
> > make[1]: Leaving directory '/php-apcu-4.0.7'
> > 
> > Full build log:
> > https://reproducible.debian.net/rb-pkg/unstable/amd64/php-apcu.html
> > 
> > -- System Information:
> > Debian Release: stretch/sid
> > APT prefers unstable
> > APT policy: (500, 'unstable')
> > Architecture: amd64 (x86_64)
> > 
> > _______________________________________________
> > Pkg-php-pecl mailing list
> > Pkg-php-pecl@lists.alioth.debian.org
> > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-pecl
> 
> 
> -- 
> Ondřej Surý <ondrej@sury.org>
> Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server


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



Added indication that 805222 affects php-gearman, php-geoip, php-gnupg, php-horde-lz4, php-igbinary, php-imagick, php-memcache, php-memcached, php-mongo, php-msgpack, php-mysqlnd-ms, php-oauth, php-pecl-http, php-propro, php-radius, php-raphf, php-rrd, php-ssh2, php-stomp, php-yac, and php-zmq Request was from Chris West (Faux) <solo-debianbugs@goeswhere.com> to control@bugs.debian.org. (Sun, 20 Dec 2015 13:51:22 GMT) (full text, mbox, link).


Reply sent to Ondřej Surý <ondrej@debian.org>:
You have taken responsibility. (Thu, 31 Dec 2015 15:57:08 GMT) (full text, mbox, link).


Notification sent to "Chris West (Faux)" <solo-debianbugs@goeswhere.com>:
Bug acknowledged by developer. (Thu, 31 Dec 2015 15:57:09 GMT) (full text, mbox, link).


Message #44 received at 805222-close@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@debian.org>
To: 805222-close@bugs.debian.org
Subject: Bug#805222: fixed in php5 5.6.16+dfsg-3
Date: Thu, 31 Dec 2015 15:53:11 +0000
Source: php5
Source-Version: 5.6.16+dfsg-3

We believe that the bug you reported is fixed in the latest version of
php5, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 805222@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ondřej Surý <ondrej@debian.org> (supplier of updated php5 package)

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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 31 Dec 2015 14:48:43 +0100
Source: php5
Binary: php5 php5-common libapache2-mod-php5 libapache2-mod-php5filter php5-cgi php5-cli php5-phpdbg php5-fpm libphp5-embed php5-dev php5-dbg php-pear php5-curl php5-enchant php5-gd php5-gmp php5-imap php5-interbase php5-intl php5-ldap php5-mcrypt php5-readline php5-mysql php5-mysqlnd php5-odbc php5-pgsql php5-pspell php5-recode php5-snmp php5-sqlite php5-sybase php5-tidy php5-xmlrpc php5-xsl
Architecture: source all
Version: 5.6.16+dfsg-3
Distribution: unstable
Urgency: medium
Maintainer: Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>
Changed-By: Ondřej Surý <ondrej@debian.org>
Description:
 libapache2-mod-php5 - server-side, HTML-embedded scripting language (Apache 2 module)
 libapache2-mod-php5filter - server-side, HTML-embedded scripting language (apache 2 filter mo
 libphp5-embed - HTML-embedded scripting language (Embedded SAPI library)
 php-pear   - PEAR - PHP Extension and Application Repository
 php5       - server-side, HTML-embedded scripting language (metapackage)
 php5-cgi   - server-side, HTML-embedded scripting language (CGI binary)
 php5-cli   - command-line interpreter for the php5 scripting language
 php5-common - Common files for packages built from the php5 source
 php5-curl  - CURL module for php5
 php5-dbg   - Debug symbols for PHP5
 php5-dev   - Files for PHP5 module development
 php5-enchant - Enchant module for php5
 php5-fpm   - server-side, HTML-embedded scripting language (FPM-CGI binary)
 php5-gd    - GD module for php5
 php5-gmp   - GMP module for php5
 php5-imap  - IMAP module for php5
 php5-interbase - interbase/firebird module for php5
 php5-intl  - internationalisation module for php5
 php5-ldap  - LDAP module for php5
 php5-mcrypt - MCrypt module for php5
 php5-mysql - MySQL module for php5
 php5-mysqlnd - MySQL module for php5 (Native Driver)
 php5-odbc  - ODBC module for php5
 php5-pgsql - PostgreSQL module for php5
 php5-phpdbg - server-side, HTML-embedded scripting language (PHPDBG binary)
 php5-pspell - pspell module for php5
 php5-readline - Readline module for php5
 php5-recode - recode module for php5
 php5-snmp  - SNMP module for php5
 php5-sqlite - SQLite module for php5
 php5-sybase - Sybase / MS SQL Server module for php5
 php5-tidy  - tidy module for php5
 php5-xmlrpc - XML-RPC module for php5
 php5-xsl   - XSL module for php5
Closes: 805222
Changes:
 php5 (5.6.16+dfsg-3) unstable; urgency=medium
 .
   * Remove invalid patch to not reset packagingroot inside
     PEAR/Command/Install.php
   * Revert PEAR version to last working version from PHP 5.6.14
     (Closes: #805222)
Checksums-Sha1:
 7e201bf9e25ec51c8ff3efb88c0d0b148416dc8f 5199 php5_5.6.16+dfsg-3.dsc
 e117ec638cee5dd09a995c0ff9e067eb2531f591 223580 php5_5.6.16+dfsg-3.debian.tar.xz
 d4526b29eb5a4b66dda14a688c6c79b153d9d51b 268004 php-pear_5.6.16+dfsg-3_all.deb
 4a287859741466e41b151c9a247878ebff2d68bb 1260 php5_5.6.16+dfsg-3_all.deb
Checksums-Sha256:
 89b614eb2a97a6f20851b7fe49031d2fe493748228870d0926efcb04f950847d 5199 php5_5.6.16+dfsg-3.dsc
 7d5e79834c45766e89d3be809c62603f02fa52b415222626eeb9ac6c865b9658 223580 php5_5.6.16+dfsg-3.debian.tar.xz
 94748578b00e1418cb1f42005d6b350ca16f66aa6187f202e0b4399db6602314 268004 php-pear_5.6.16+dfsg-3_all.deb
 3b26b25a65c324496ce6bc9181ea66b6afb6573e0534cb1b4ce9edb66bebceae 1260 php5_5.6.16+dfsg-3_all.deb
Files:
 9fc312404f04774ff1d083ab35e723f4 5199 php optional php5_5.6.16+dfsg-3.dsc
 b52b4261a2453bb8f4406275b9f7bde5 223580 php optional php5_5.6.16+dfsg-3.debian.tar.xz
 0c79cd89696f6078a478188211b789ec 268004 php optional php-pear_5.6.16+dfsg-3_all.deb
 8c3b269072561ce1c5b88ee4b94e3308 1260 php optional php5_5.6.16+dfsg-3_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQJ8BAEBCgBmBQJWhThaXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzMEI5MzNEODBGQ0UzRDk4MUEyRDM4RkIw
Qzk5QjcwRUY0RkNCQjA3AAoJEAyZtw70/LsHOUIQAM+hfg8/0vdBgb57K00iQiMr
rSkuI2Nttaw+SAofMCXWYhTzWCF3J5FOPFg0lSTMmU4efjeybEfItfqUStnT9k2B
DTMwntnd/sGoMpdR7GyVW2pMzShqWQz8+W4fiPkoYMa1VLD0Rwz78f/EZiRAIfI+
A4uAo9kmiUXNbvQOeQWpGSQZzczZay3vKubOmh9HoDzq1tJBBBPhsc7gM07EZAvr
5vrvCKVnel4s97uM1UWs2KLTTmA7r9DuPZayWQKam9YZC6g+ScTNDb1XnXVzIp0y
I8dP7I/rMW3OxN8nRktmpBNepyrDLYibqENYFV1gj97E7qjNHFxzjBiTARgNDHnB
9QV/Bx5Z1KZOUeQHO1mhAPDH/2mbPv3ynvAnwCG5XnhhtnOmrY1suBOAnoakOEaP
2KKCm7QBGYF6a8CzN9eWi9po0FsgZq27CCF0CQfsnDJssY/qX8gZCT6mmoa51NhA
+XBAsVEQwMLefTk0BAvGwAlByBni4FyFWYkFE4zGkS6aM64wXG910edevTyd5Ek7
zREkpzkSlyq99SkIuSJNGcaqs4Py0BGjSlezVL1KRVmzgjhJNmLu/yFkq+XV7422
Knxx9vUVuqxfea+iylKWVXiksfoJ2q7O0jxkc4aX3ovR4rbHb5SUiGMF3KIsAyfh
QYRqiAGcKjLAT07eHrRx
=kZkw
-----END PGP SIGNATURE-----




Bug archived. Request was from Ondřej Surý <ondrej@debian.org> to control@bugs.debian.org. (Wed, 27 Jan 2016 11:18:20 GMT) (full text, mbox, link).


Bug unarchived. Request was from Mathieu Parent <sathieu@debian.org> to control@bugs.debian.org. (Sat, 12 Mar 2016 21:27:04 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP PEAR Maintainers <pkg-php-pear@lists.alioth.debian.org>:
Bug#805222; Package php-pear. (Sat, 12 Mar 2016 21:33:03 GMT) (full text, mbox, link).


Acknowledgement sent to "Mathieu Parent (Debian)" <sathieu@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP PEAR Maintainers <pkg-php-pear@lists.alioth.debian.org>. (Sat, 12 Mar 2016 21:33:04 GMT) (full text, mbox, link).


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

From: "Mathieu Parent (Debian)" <sathieu@debian.org>
To: Ondřej Surý <ondrej@sury.org>, remi@fedoraproject.org, Petr Gajdos <pgajdos@suse.cz>
Cc: Debian Bug Tracking System <805222@bugs.debian.org>
Subject: Re: [Pkg-php-pecl] Bug#805222: php-apcu: FTBFS: PHP Fatal error: Call to a member function getFilelist() on null
Date: Sat, 12 Mar 2016 22:30:03 +0100
[Message part 1 (text/plain, inline)]
... About the FTBFS of PECL extensions...

2015-12-08 12:21 GMT+01:00 Ondřej Surý <ondrej@sury.org>:
> JFTR this is not a correct fix and we need upstream to fix that, because
> there are two different approaches of handling packagingroot at
> different places and this is the main reason why it's causing the
> errors.
>
> PEAR_Command_Install is directly mangling the variables (channelsdir,
> etc.), but the code below resets this to default value by calling
> PEAR_Config::setInstallRoot($options['packagingroot']) followed by
> PEAR_Config::setInstallRoot(false). This needs to be made consistent.

Hello,

Bisecting lead to the following commit:

$ git bisect visualize
commit 4a66490bdecd5e4ec2b8213e89a6e40aaa18975e
Author: Christian Weiske <cweiske@cweiske.de>
Date:   Mon Feb 9 23:26:33 2015 +0100

    Fix for PHP 7: Replace "&new" with "new" (new-by-reference)

I've attached the used bissect script.

Disclamier, I'm still using php 5.6.

-- 
Mathieu Parent
[bisect.sh (application/x-sh, attachment)]

Bug reopened Request was from Mathieu Parent <sathieu@debian.org> to control@bugs.debian.org. (Sat, 12 Mar 2016 21:36:03 GMT) (full text, mbox, link).


No longer marked as fixed in versions php5/5.6.16+dfsg-3. Request was from Mathieu Parent <sathieu@debian.org> to control@bugs.debian.org. (Sat, 12 Mar 2016 21:36:04 GMT) (full text, mbox, link).


Changed Bug title to 'PECL extensions FTBFS with PHP Fatal error: Call to a member function getFilelist() on null' from 'php-apcu: FTBFS: PHP Fatal error: Call to a member function getFilelist() on null' Request was from Mathieu Parent <sathieu@debian.org> to control@bugs.debian.org. (Sat, 12 Mar 2016 21:36:05 GMT) (full text, mbox, link).


Marked as fixed in versions php5/5.6.16+dfsg-3. Request was from Mathieu Parent <sathieu@debian.org> to control@bugs.debian.org. (Sat, 12 Mar 2016 21:51:04 GMT) (full text, mbox, link).


Marked as found in versions php-pear/1:1.10.1+submodules+notgz-1. Request was from Mathieu Parent <sathieu@debian.org> to control@bugs.debian.org. (Sat, 12 Mar 2016 21:51:05 GMT) (full text, mbox, link).


Marked as fixed in versions php5/5.6.14+dfsg-1. Request was from Mathieu Parent <sathieu@debian.org> to control@bugs.debian.org. (Sat, 12 Mar 2016 21:51:05 GMT) (full text, mbox, link).


Marked as found in versions php5/5.6.15+dfsg-1. Request was from Mathieu Parent <sathieu@debian.org> to control@bugs.debian.org. (Sat, 12 Mar 2016 21:51:06 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP PEAR Maintainers <pkg-php-pear@lists.alioth.debian.org>:
Bug#805222; Package php-pear. (Sat, 12 Mar 2016 22:45:04 GMT) (full text, mbox, link).


Acknowledgement sent to "Mathieu Parent (Debian)" <sathieu@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP PEAR Maintainers <pkg-php-pear@lists.alioth.debian.org>. (Sat, 12 Mar 2016 22:45:04 GMT) (full text, mbox, link).


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

From: "Mathieu Parent (Debian)" <sathieu@debian.org>
To: Ondřej Surý <ondrej@sury.org>, remi@fedoraproject.org, Petr Gajdos <pgajdos@suse.cz>
Cc: Debian Bug Tracking System <805222@bugs.debian.org>
Subject: Re: [Pkg-php-pecl] Bug#805222: php-apcu: FTBFS: PHP Fatal error: Call to a member function getFilelist() on null
Date: Sat, 12 Mar 2016 23:42:59 +0100
2016-03-12 22:30 GMT+01:00 Mathieu Parent (Debian) <sathieu@debian.org>:
> ... About the FTBFS of PECL extensions...
[...]
> $ git bisect visualize
> commit 4a66490bdecd5e4ec2b8213e89a6e40aaa18975e
> Author: Christian Weiske <cweiske@cweiske.de>
> Date:   Mon Feb 9 23:26:33 2015 +0100
>
>     Fix for PHP 7: Replace "&new" with "new" (new-by-reference)

And the following patch fix the FTBFS:

diff --git a/PEAR/Config.php b/PEAR/Config.php
index 5b3f1e2..7b21726 100644
--- a/PEAR/Config.php
+++ b/PEAR/Config.php
@@ -2119,10 +2119,10 @@ class PEAR_Config extends PEAR
                 if ($layer == 'ftp' || !isset($this->_registry[$layer])) {
                     continue;
                 }
-                $this->_registry[$layer] =
-                    new PEAR_Registry(
+                $r = new PEAR_Registry(
                         $this->get('php_dir', $layer,
'pear.php.net'), false, false,
                         $this->get('metadata_dir', $layer, 'pear.php.net'));
+                $this->_registry[$layer] = &$r;
                 $this->_registry[$layer]->setConfig($this, false);
                 $this->_regInitialized[$layer] = false;
             }
(still php 5.6)

Regards


-- 
Mathieu Parent



Reply sent to Mathieu Parent <sathieu@debian.org>:
You have taken responsibility. (Sat, 19 Mar 2016 22:24:04 GMT) (full text, mbox, link).


Notification sent to "Chris West (Faux)" <solo-debianbugs@goeswhere.com>:
Bug acknowledged by developer. (Sat, 19 Mar 2016 22:24:04 GMT) (full text, mbox, link).


Message #77 received at 805222-close@bugs.debian.org (full text, mbox, reply):

From: Mathieu Parent <sathieu@debian.org>
To: 805222-close@bugs.debian.org
Subject: Bug#805222: fixed in php-pear 1:1.10.1+submodules+notgz-5
Date: Sat, 19 Mar 2016 22:21:25 +0000
Source: php-pear
Source-Version: 1:1.10.1+submodules+notgz-5

We believe that the bug you reported is fixed in the latest version of
php-pear, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 805222@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Mathieu Parent <sathieu@debian.org> (supplier of updated php-pear package)

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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sat, 19 Mar 2016 22:43:58 +0100
Source: php-pear
Binary: php-pear
Architecture: source all
Version: 1:1.10.1+submodules+notgz-5
Distribution: unstable
Urgency: medium
Maintainer: Debian PHP PEAR Maintainers <pkg-php-pear@lists.alioth.debian.org>
Changed-By: Mathieu Parent <sathieu@debian.org>
Description:
 php-pear   - ${phppear:summary}
Closes: 805222 817814 818271
Changes:
 php-pear (1:1.10.1+submodules+notgz-5) unstable; urgency=medium
 .
   * Replace /usr/share/doc/php-pear symlink by a dir (Closes: #817814)
   * Set PHP_PEAR_SYSCONF_DIR to /etc/pear (Closes: #818271)
   * Fix "PECL extensions FTBFS with PHP Fatal error:
     Call to a member function getFilelist() on null" (Closes: #805222)
   * Standards-Version: 3.9.7
   * Updated Vcs-* fields to use https
   * Add lintian override for pear-package-without-pkg-php-tools-builddep
Checksums-Sha1:
 d0bc49eb31dc38bdeacd783d5cc3caab100fa6d2 2055 php-pear_1.10.1+submodules+notgz-5.dsc
 96aa6d95e17273a08f3d1e59c947b93666fe0ec6 5468 php-pear_1.10.1+submodules+notgz-5.debian.tar.xz
 a4c45da8b8ce37531f1358d3cafb264636381efb 283546 php-pear_1.10.1+submodules+notgz-5_all.deb
Checksums-Sha256:
 c044b1708ad22042faa37988278b04878403548f7d78cd7d7c03c2a6740651b1 2055 php-pear_1.10.1+submodules+notgz-5.dsc
 01eff2961454d55f6b8188be2d421836e5a1fa5ff31939cbf8c362d0641fd1ab 5468 php-pear_1.10.1+submodules+notgz-5.debian.tar.xz
 bb3cd6b1790ce8d1820bea0d1624604aac9c416e3332585a0e7c26a439e09d06 283546 php-pear_1.10.1+submodules+notgz-5_all.deb
Files:
 8e1beb9c84906bb5207803e03af36ecb 2055 php optional php-pear_1.10.1+submodules+notgz-5.dsc
 1456308be3b7023be37144bc4a813da3 5468 php optional php-pear_1.10.1+submodules+notgz-5.debian.tar.xz
 5152f13117641e9fb5a761d3d0913727 283546 php optional php-pear_1.10.1+submodules+notgz-5_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJW7cvqAAoJEK4DmARmaB+lao0P/RETgDkYtsPfXyKwrUUnzqTk
blelxMergSL+ZUlwRCGFnnHzc1PCMuOpnlji+11M07QlPSsTMCE7+2kkiocA/pdP
uDjd0BtLgXm+3lTCTOIFNBohB3To155ht/p1Qzmnba6XpTvWTL45trrX8mu22Kim
ZwcCPxQVr/iTwQ/X6WRhZfopxwFz2uAtfpSycEd3cIcgkoZNXl8/NG/MqkCfLe+L
gxttcHTOOAFtz1A+SSo7VanBAiXPXRBCHJZ1QvrpFTY/NTDUs+e3qSI2C50N//VN
xvM5mXZkGCR0UzdKiXOzhcG6Ddm8sHrXepprftApwAQcqdsIJrD8q0xbMNj4bNQv
QvmgPpxX3NMhYLZax3+0ofpCUIWQZCLmLSN1N+0fhAaYb5lhycQOWj6v6GkhC92M
wjj9XHyS0C/OeYxwdwQYBieYErzHmMyyZ9TE1qS6BvDRgu4A7rvqrhqDq5djZ01g
OnY7TD2cBBkzZBsOo+QTPp8yN9o1KLvkuwD5AIgmsIE4f5dUFSdjiQeb1Tw11Yz8
K3QN4gHzYZ8cFIkVF+cvdniH8AcWHT4fyio3RircBHvblpX61qc8Xgnly6v9v+aI
t+l0q+92GUrDliVjMJrIveACAr36Mcr0JEZneYcAYV7sgAdkdvKk3CMT6nwvzU4H
wD3b8EOOnUlI5tDQDuCB
=tFdG
-----END PGP SIGNATURE-----




Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP PEAR Maintainers <pkg-php-pear@lists.alioth.debian.org>:
Bug#805222; Package php-pear. (Tue, 22 Mar 2016 19:51:16 GMT) (full text, mbox, link).


Acknowledgement sent to Sven-Haegar Koch <haegar@sdinet.de>:
Extra info received and forwarded to list. Copy sent to Debian PHP PEAR Maintainers <pkg-php-pear@lists.alioth.debian.org>. (Tue, 22 Mar 2016 19:51:17 GMT) (full text, mbox, link).


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

From: Sven-Haegar Koch <haegar@sdinet.de>
To: 805222@bugs.debian.org
Subject: Bug now appears in Debian Jessie
Date: Tue, 22 Mar 2016 20:49:37 +0100 (CET)
Hallo,

It seems that this bug (fixed for Debian Unstable) "PECL extensions 
FTBFS with PHP Fatal error: Call to a member function getFilelist() 
on null" now appeared in Debian Stable (Jessie) with the PHP5 security 
updates, but there missing the fix introduced.

To reproduce try rebuilding the php-apcu 4.0.7-1 source package (in an 
fully updated Jessie):

...
dh_auto_install --destdir=debian/php5-apcu
        install -d debian/php5-apcu
        /usr/bin/pear -c debian/pearrc -d download_dir=/tmp -d 
include_path=/usr/share/php -d php_bin=/usr/bin/php -d bin_dir=/usr/bin 
-d php_dir=/usr/share/php -d data_dir=/usr/share/php/data -d 
doc_dir=/usr/share/doc/php5-apcu -d test_dir=/usr/share/php/tests 
install --offline --nodeps -P 
/home/haegar/ap/php-apcu-4.0.7/debian/php5-apcu --nobuild 
./apcu-4.0.7/package.xml
PHP Fatal error:  Call to a member function getFilelist() on null in 
/usr/share/php/PEAR/Command/Install.php on line 747
dh_auto_install: /usr/bin/pear -c debian/pearrc -d download_dir=/tmp -d 
include_path=/usr/share/php -d php_bin=/usr/bin/php -d bin_dir=/usr/bin 
-d php_dir=/usr/share/php -d data_dir=/usr/share/php/data -d 
doc_dir=/usr/share/doc/php5-apcu -d test_dir=/usr/share/php/tests 
install --offline --nodeps -P 
/home/haegar/ap/php-apcu-4.0.7/debian/php5-apcu --nobuild 
./apcu-4.0.7/package.xml returned exit code 255
debian/rules:9: recipe for target 'override_dh_auto_install' failed
...


(jessie32)haegar@corona:~$ dpkg -S /usr/share/php/PEAR/Command/Install.php
php-pear: /usr/share/php/PEAR/Command/Install.php

(jessie32)haegar@corona:~$ dpkg -l |grep php-pear
ii  php-pear                                5.6.17+dfsg-0+deb8u1                 all          PEAR - PHP Extension and Application Repository


(Not re-opening the bug yet, unsure about the procedure for newly 
introduced stable bugs)

c'ya
sven-haegar

-- 
Three may keep a secret, if two of them are dead.
- Ben F.



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 19 May 2016 07:27:15 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 00:46:58 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.