Skip to content

Fix linking ext/curl against OpenSSL (#13262) - #25129

Merged
shivammathur merged 1 commit into
php:PHP-8.2from
shivammathur:fix/php-8.2-curl-openssl-detection
Nov 1, 2026
Merged

shivammathur merged 1 commit into
php:PHP-8.2from
shivammathur:fix/php-8.2-curl-openssl-detection

Conversation

@shivammathur

@shivammathur shivammathur commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

This is backport for 8.3 of b222c02
that originally targeted only 8.4+. This is however a bug fix.

Following 68f6ab7, the ext/curl doesn't
need to be linked against OpenSSL anymore, if curl_version_info_data
ssl_version is OpenSSL/1.1 or later.

With OpenSSL 3 and later the check for old SSL crypto locking callbacks
was detected here.

This also uses a common PHP_SETUP_OPENSSL macro for checking OpenSSL and
syncs the minimum OpenSSL version (currently 1.0.2 or later) across the
PHP build system.

(cherry picked from commit ae92b85)
@shivammathur
shivammathur requested a review from adoy as a code owner November 1, 2026 15:26
@shivammathur
shivammathur merged commit dc5acdb into php:PHP-8.2 Nov 1, 2026
17 of 18 checks passed
shivammathur added a commit to shivammathur/php-src that referenced this pull request Nov 1, 2026
* PHP-8.6:
  Fix linking ext/curl against OpenSSL (php#13262) (php#25129)
opensource-fork-sync Bot pushed a commit to cla7aye15I4nd/opensource-php__php-src that referenced this pull request Nov 1, 2026
* PHP-8.2:
  Fix linking ext/curl against OpenSSL (php#13262) (php#25129)
opensource-fork-sync Bot pushed a commit to cla7aye15I4nd/opensource-php__php-src that referenced this pull request Nov 1, 2026
* PHP-8.3:
  Fix linking ext/curl against OpenSSL (php#13262) (php#25129)
opensource-fork-sync Bot pushed a commit to cla7aye15I4nd/opensource-php__php-src that referenced this pull request Nov 1, 2026
* PHP-8.4:
  Fix linking ext/curl against OpenSSL (php#13262) (php#25129)
opensource-fork-sync Bot pushed a commit to cla7aye15I4nd/opensource-php__php-src that referenced this pull request Nov 1, 2026
* PHP-8.5:
  Fix linking ext/curl against OpenSSL (php#13262) (php#25129)
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.

2 participants