Skip to content

Add support for latest pecl packages - #801

Merged
mzch merged 4 commits into
php-build:masterfrom
virlatinus:master
Aug 20, 2026
Merged

Add support for latest pecl packages#801
mzch merged 4 commits into
php-build:masterfrom
virlatinus:master

Conversation

@wg-vn

@wg-vn wg-vn commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Allow PHP_BUILD_INSTALL_EXTENSION entries without an explicit version to resolve to the latest version published on pecl.php.net
  • Update README with a usage example demonstrating extension installation with configure options

Test plan

  • Verify phpenv install with PHP_BUILD_INSTALL_EXTENSION="redis" (no version) resolves and installs the latest version from pecl
  • Verify existing behavior with explicit extension=version still works

@wg-vn
wg-vn marked this pull request as draft August 19, 2026 23:14
wg-vn added 2 commits August 19, 2026 17:17
curl -sI on a nonexistent package silently produced an empty
extension/version, which install_extension then tried to use
without any diagnostic. Add explicit checks for HTTP/network
failures and a missing content-disposition header.
A single bad entry in PHP_BUILD_INSTALL_EXTENSION shouldn't stop
the whole build; log the error and move on to the next extension.
@wg-vn
wg-vn marked this pull request as ready for review August 19, 2026 23:21
@mzch
mzch merged commit 2283f5a into php-build:master Aug 20, 2026
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants