Edit report at https://bugs.php.net/bug.php?id=78949&edit=1
ID: 78949
Updated by: cmb@php.net
Reported by: dries dot vints at gmail dot com
Summary: PEAR cannot find installed Archive/Tar.php
Status: Open
Type: Bug
-Package: archive
+Package: *General Issues
Operating System: macOS Catalina
PHP Version: 7.4.0
Block user comment: N
Private report: N
New Comment:
This is certainly unrelated to PECL/archive.
Previous Comments:
------------------------------------------------------------------------
[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