php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74884 Cannot install PEAR using install-pear-nozlib.phar archive
Submitted: 2017-07-09 12:47 UTC Modified: 2017-07-29 15:59 UTC
From: clicky at erebot dot net Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 7.2.0alpha3 OS: Debian Stretch
Private report: No CVE-ID: None
 [2017-07-09 12:47 UTC] clicky at erebot dot net
Description:
------------
Trying to install the PEAR installer using the install-pear-nozlib.phar results in a 255 exit code.
No error is displayed on the console and pear is not installed.

I tracked this down to the setAttribute() method in Archive/Tar.php, which uses the reference operator (&) on an internal function (func_get_args).

Test script:
---------------
$ php-7.2.0alpha3/sapi/cli/php ../install-pear-nozlib.phar

Expected result:
----------------
PEAR installer gets installed, printing a bunch of message on stdout ot indicate progress and exiting with 0

Actual result:
--------------
Nothing on stdout/stderr, pear installer is not installed and the commands exits with code 255

Patches

pear-installer-internal-func-ref.patch (last revision 2017-07-09 12:47 UTC by clicky at erebot dot net)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-07-29 15:59 UTC] clicky at erebot dot net
-Status: Open +Status: Closed
 [2017-07-29 15:59 UTC] clicky at erebot dot net
Nevermind, I used an old version of the phar archive which bundled Archive_Tar 1.4.0.
This issue has been fixed in Archive_Tar 1.4.3 which is now bundled in the latest version of the installer.
See also https://github.com/pear/Archive_Tar/commit/85ebf1e6190681820634c891af624bacde49a017 for the relevant commit.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 17:01:58 2024 UTC