Skip to content

Rename FPM's apache_request_headers() implementation to fpm_request_headers - #24249

Merged
kocsismate merged 1 commit into
php:masterfrom
mnapoli:fpm-request-headers
Oct 12, 2026
Merged

kocsismate merged 1 commit into
php:masterfrom
mnapoli:fpm-request-headers

Conversation

@mnapoli

@mnapoli mnapoli commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

The CLI SAPI (for its built-in web server) and FPM both implement apache_request_headers() with PHP_FUNCTION(apache_request_headers), so both define the C symbol zif_apache_request_headers. That makes it impossible to link the two SAPIs into the same executable: the link fails with a duplicate symbol.

This renames FPM's implementation to fpm_request_headers (the name suggested in the review of #23558), and maps apache_request_headers() and getallheaders() to it with @implementation-alias. There is no behavior change: the PHP functions are unchanged.

Why

It is extracted from #24192. The rename can be merged on its own as it cleans up the naming (since the function is related to FPM, not apache).

@kocsismate kocsismate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice catch! Thanks!

@kocsismate
kocsismate merged commit 7dccee0 into php:master Oct 12, 2026
18 checks passed
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