Repository navigation
Conversation
OAuth 2.0.10 does not build on PHP 8.6, so the PHP 8.6 images shipped without it. 2.0.13 fixes the build and is published only as a GitHub tag: neither PECL nor Packagist has 2.0.11 or newer. Build OAuth 2.0.13 from the checksum-verified GitHub tag archive on every PHP version and remove it from the PHP 8.6 unavailable list. install_release now finds config.m4 at the archive root or in one top-level directory, as GitHub tag archives have, and fails if neither has it. The SQL Server archives keep building from their root. 2.0.11 to 2.0.13 also fix an OAuthProvider callback crash, a double free in the OAuth destructor, multipart upload memory errors and two OAuthProvider leaks, and move multipart uploads to cURL's MIME API. Part of #274.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The PHP 8.6 images ship without the OAuth extension, so applications that sign requests with it cannot move to PHP 8.6. PHP 8.2–8.5 images use OAuth 2.0.10, which misses three later bug-fix releases.
Cause
OAuth 2.0.10 does not build on PHP 8.6. The release that fixes this, 2.0.13, is published only on GitHub. It is not on PECL, where the images took OAuth from, or on Packagist, so PIE cannot install it either.
Solution
All images, PHP 8.2 to 8.6, now use OAuth 2.0.13, so PHP 8.6 includes it again and every version runs the same release. It is built from the release archive on GitHub, verified by checksum.
Besides PHP 8.6 support, 2.0.11–2.0.13 fix a crash when an
OAuthProvidercallback throws, a double free in theOAuthdestructor, invalid frees and dangling pointers in multipart uploads, and two memory leaks inOAuthProvider. Multipart uploads now use cURL's MIME API instead of the deprecatedcurl_formadd(). See the release notes.Changes
8/install-extensions.sh: install OAuth 2.0.13 withrelease_forfrom the GitHub tag archive, and removeoauthfrom the PHP 8.6 unavailable list.install_releasenow also accepts archives whose sources are in one top-level directory, as GitHub tag archives are. It fails if it finds noconfig.m4. The SQL Server archives, which have their sources at the root, build as before.OAuthinphp_modules/8.6.Part of #274.
Validation
phpizeonphp:8.6.0-fpm-alpine(ZTS) and on the 8.2.36, 8.3.37, 8.4.28 and 8.5.13fpm-alpineimages. It loads and reports 2.0.13 on each.make test: all tests pass, including the module list, the 2.0.13 version check and the OAuth functional test. The build log shows the checksum verified and OAuth built from the archive's top-level directory.