Bug #78949 [Com]: PEAR cannot find installed Archive/Tar.php

From: Date: Fri, 13 Dec 2019 18:01:55 +0000
Subject: Bug #78949 [Com]: PEAR cannot find installed Archive/Tar.php
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-224283@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78949&edit=1

 ID:                 78949
 Comment by:         drtechno at mail dot com
 Reported by:        dries dot vints at gmail dot com
 Summary:            PEAR cannot find installed Archive/Tar.php
 Status:             Open
 Type:               Bug
 Package:            *General Issues
 Operating System:   macOS Catalina
 PHP Version:        7.4.0
 Block user comment: N
 Private report:     N

 New Comment:

Well, it sounds like permission. execute under root alias. by executing:

sudo pecl install APCu

Most programs are deliberately restricted what they can access on a linux system, and in most cases,
like installation, it required root privileges. Only use sudo and never log as root.


Previous Comments:
------------------------------------------------------------------------
[2019-12-13 11:00:38] dries dot vints at gmail dot com

Hmm, sorry about that. There wasn't a "PEAR" option in the "Package
affected" list so I posted it under PECL which in hindsight maybe wasn't the best choice.

------------------------------------------------------------------------
[2019-12-13 10:12:26] cmb@php.net

This is certainly unrelated to PECL/archive.

------------------------------------------------------------------------
[2019-12-13 09:51:17] nikic@php.net

Don't think this has any relation to the PECL archive extension, so I doubt anyone from PEAR
will see this.

To check, /usr/local/Cellar/php/7.4.0/share/php/pear/Archive/Tar.php exists?

------------------------------------------------------------------------
[2019-12-12 09:28:24] dries dot vints at gmail dot com

Updated email address

------------------------------------------------------------------------
[2019-12-12 09:27:40] dries dot vints at gmail dot com

Description:
------------
When I try to install APCu with pecl on PHP 7.4 I get an error saying that PEAR cannot find
Archive/Tar even though it's installed. The offset errors from below are from another bug which
has already been resolved and should be in the next PHP patch release. I've installed PHP
through Homebrew.

$ pecl install APCu

Notice: Trying to access array offset on value of type bool in REST.php on line 181
PHP Notice:  Trying to access array offset on value of type bool in
/usr/local/Cellar/php/7.4.0/share/php/pear/PEAR/REST.php on line 181

Notice: Trying to access array offset on value of type bool in
/usr/local/Cellar/php/7.4.0/share/php/pear/PEAR/REST.php on line 181
downloading apcu-5.1.18.tgz ...
Starting to download apcu-5.1.18.tgz (94,668 bytes)
.....................done: 94,668 bytes

Warning: require_once(Archive/Tar.php): failed to open stream: No such file or directory in
PackageFile.php on line 304
PHP Warning:  require_once(Archive/Tar.php): failed to open stream: No such file or directory in
/usr/local/Cellar/php/7.4.0/share/php/pear/PEAR/PackageFile.php on line 304

Warning: require_once(Archive/Tar.php): failed to open stream: No such file or directory in
/usr/local/Cellar/php/7.4.0/share/php/pear/PEAR/PackageFile.php on line 304
PHP Fatal error:  require_once(): Failed opening required 'Archive/Tar.php'
(include_path='/usr/local/Cellar/php/7.4.0/share/php/pear:/usr/local/Cellar/php/7.4.0/share/php/pear:/usr/local/Cellar/php/7.4.0/share/php/pear')
in /usr/local/Cellar/php/7.4.0/share/php/pear/PEAR/PackageFile.php on line 304

Fatal error: require_once(): Failed opening required 'Archive/Tar.php'
(include_path='/usr/local/Cellar/php/7.4.0/share/php/pear:/usr/local/Cellar/php/7.4.0/share/php/pear:/usr/local/Cellar/php/7.4.0/share/php/pear')
in /usr/local/Cellar/php/7.4.0/share/php/pear/PEAR/PackageFile.php on line 304

Test script:
---------------
Run pecl install APCu on PHP 7.4



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=78949&edit=1


Thread (1 message)

  • drtechno at mail dot com
  • Unknown Message
    • drtechno at mail dot com
« previous php.bugs (#224283) next »