Skip to content

Make curl brotli and zstd optional on Windows#21925

Open
shivammathur wants to merge 1 commit intophp:PHP-8.2from
shivammathur:curl-optional-deps
Open

Make curl brotli and zstd optional on Windows#21925
shivammathur wants to merge 1 commit intophp:PHP-8.2from
shivammathur:curl-optional-deps

Conversation

@shivammathur
Copy link
Copy Markdown
Member

As requested by @Jan-E here winlibs/cURL#26

This allows builds with older curl versions to continue without these dependencies, while also supporting static library names when they are present.

Co-authored-by: Jan Ehrhardt <1757825+Jan-E@users.noreply.github.com>
Copy link
Copy Markdown
Member

@saundefined saundefined left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

I have no objections, if @adoy also supports it, go ahead.

@Jan-E
Copy link
Copy Markdown
Contributor

Jan-E commented May 5, 2026

FWIW: I even backported this change to PHP 7.4, which I compile sometimes in 2 different build environments

  1. VS16 with brotli and zstd libs present
  2. VS15 without those dependencies

It did exactly what it was supposed to do: brotli in curl was supported in the VS16 env (zstd probably as well, but PHP 7.4 does not report that). In the VS15 env the compilation went as it has always been.

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