Skip to content

[Sync-EN] Warn that header_register_callback() callbacks are not stacked - #1734

Merged
mmalferov merged 2 commits into
php:masterfrom
lacatoire:sync-en/1628
Oct 22, 2026
Merged

mmalferov merged 2 commits into
php:masterfrom
lacatoire:sync-en/1628

Conversation

@lacatoire

Copy link
Copy Markdown
Member

Syncs reference/network/functions/header-register-callback.xml with php/doc-en#5760.

Adds the warning introduced upstream: callbacks are not stacked, a later call to header_register_callback() silently de-registers the previously registered callback wherever it was set, dependencies may overwrite it, and the situation is hard to troubleshoot.

EN-Revision bumped to abdc23836d3f42399028c1174961107e70ada52d.

Fixes: #1628

@lacatoire
lacatoire requested a review from a team as a code owner August 31, 2026 09:33
@mmalferov
mmalferov merged commit f9e8fd5 into php:master Oct 22, 2026
4 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.

[Sync EN] Add warning for header_register_callback usage

2 participants