[php-src] Issue #7966: Private method warning emitted when running `install-pear-nozlib.phar`
| From: | ramsey | Date: | Wed, 19 Jan 2022 00:20:32 +0000 |
| Subject: | [php-src] Issue #7966: Private method warning emitted when running `install-pear-nozlib.phar` | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-239114@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/7966
Author: ramsey
### Description
Grab one of the 8.1.2 tarballs from
[php/web-php-distributions](https://github.com/php/web-php-distributions) and unpack it.
cd into its directory. Then, run (I ran it with PHP 8.1.1, using the Phar included in
the 8.1.2 tarball):
```shell
php pear/install-pear-nozlib.phar
```
This results in this output:
```
PHP Warning: Private methods cannot be final as they are never overridden by other classes in
/path/to/php-8.1.2/pear/install-pear-nozlib.phar on line 339
Warning: Private methods cannot be final as they are never overridden by other classes in
/path/to/php-8.1.2/pear/install-pear-nozlib.phar on line 339
[PEAR] Archive_Tar - already installed: 1.4.14
[PEAR] Console_Getopt - already installed: 1.4.3
[PEAR] Structures_Graph- already installed: 1.1.1
[PEAR] XML_Util - already installed: 1.4.5
[PEAR] PEAR - already installed: 1.10.13
Warning! a PEAR user config file already exists from a previous PEAR installation at
'/home/user/.pearrc'. You may probably want to remove it.
Wrote PEAR system config file at: /usr/local/etc/php/8.1/pear.conf
You may want to add: /usr/local/Cellar/php/8.1.1/share/php/pear to your php.ini include_path
```
But I expected this output instead:
```
[PEAR] Archive_Tar - already installed: 1.4.14
[PEAR] Console_Getopt - already installed: 1.4.3
[PEAR] Structures_Graph- already installed: 1.1.1
[PEAR] XML_Util - already installed: 1.4.5
[PEAR] PEAR - already installed: 1.10.13
Warning! a PEAR user config file already exists from a previous PEAR installation at
'/home/user/.pearrc'. You may probably want to remove it.
Wrote PEAR system config file at: /usr/local/etc/php/8.1/pear.conf
You may want to add: /usr/local/Cellar/php/8.1.1/share/php/pear to your php.ini include_path
```
### PHP Version
PHP 8.1.1
### Operating System
macOS 12.1