Skip to content

Persist the pear/install-pear-nozlib.phar file - #23634

Open
DanielEScherzer wants to merge 2 commits into
php:PHP-8.2from
DanielEScherzer:commit-install-pear
Open

Persist the pear/install-pear-nozlib.phar file#23634
DanielEScherzer wants to merge 2 commits into
php:PHP-8.2from
DanielEScherzer:commit-install-pear

Conversation

@DanielEScherzer

Copy link
Copy Markdown
Member

Rather than downloading it as part of the makedist script, add the script to the project's version control. The installation instructions are updated to indicate that the needed phar script is always present, and the only thing needed is to become the superuser and run make install-pear.

The phar is currently marked as binary in the git attributes since it is not entirely text, it is committed as-is from the pear server and can be cleaned up in future commits.

This also fixes the installation process when previously the installation would try to fallback to the fetch.php helper - it seems that the https stream wrapper is not included in PHP by default. Now that the phar is committed to version control, the fetch.php helper script is no longer needed. After this patch, ./configure --with-pear --enable-xml allows installing pear with make without additional manual actions.

Also includes a cherry-pick of #14216 to update the instructions in pear/install-pear.txt.

petk and others added 2 commits September 9, 2026 10:53
There was once install-su Makefile rule, now the install-pear can be
used instead.

(cherry picked from commit 9aee546)
Rather than downloading it as part of the `makedist` script, add the script to
the project's version control. The installation instructions are updated to
indicate that the needed phar script is always present, and the only thing
needed is to become the superuser and run `make install-pear`.

The phar is currently marked as binary in the git attributes since it is not
entirely text, it is committed as-is from the pear server and can be cleaned up
in future commits.

This also fixes the installation process when previously the installation would
try to fallback to the `fetch.php` helper - it seems that the https stream
wrapper is not included in PHP by default. Now that the phar is committed to
version control, the `fetch.php` helper script is no longer needed. After this
patch, `./configure --with-pear --enable-xml` allows installing pear with
`make` without additional manual actions.
@Girgias

Girgias commented Sep 9, 2026

Copy link
Copy Markdown
Member

Why? We are trying to get rid of PEAR.

@DanielEScherzer

Copy link
Copy Markdown
Member Author

CC @ashnazg - I see that you are still a bit active in updating https://github.com/pear/pear-core. This would switch from always bundling the latest version of the install-pear-nozlib.phar file (by downloading it at release time) to using a fixed, static version.


Why? We are trying to get rid of PEAR.

No objections to that, but currently we (release managers who run makedist, and anyone building from source) download the latest file directly from https://pear.php.net/install-pear-nozlib.phar without any validation, and this ensures that we still have the phar in case the pear site goes down or has issues

@Girgias

Girgias commented Sep 9, 2026

Copy link
Copy Markdown
Member

Why? We are trying to get rid of PEAR.

No objections to that, but currently we (release managers who run makedist, and anyone building from source) download the latest file directly from https://pear.php.net/install-pear-nozlib.phar without any validation, and this ensures that we still have the phar in case the pear site goes down or has issues

Right, okay didn't know that RMs downloaded the file rather than building it locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants