Skip to content

Private method warning emitted when running install-pear-nozlib.phar #7966

@ramsey

Description

@ramsey

Description

Grab one of the 8.1.2 tarballs from 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):

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions