Skip to content

Conversation

@AlliBalliBaba
Copy link
Contributor

I noticed that PHP likes to handle and free basic auth parameters internally (see here and here). This PR changes it so the basic auth header is forwarded to PHP instead of resolving it in go.

I suspect that this might fix some crashes in shutdown functions (like #2121 and #1841) since it allows us freeing the request_info after shutdown is finished. I haven't been able to reproduce these crashes yet though.

Copy link
Contributor

@henderkes henderkes left a comment

Choose a reason for hiding this comment

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

Good catch, but I wonder if this is actually the source if the crashes. I don't recall doing any basic auth.

@AlliBalliBaba
Copy link
Contributor Author

It's more about freeing the request info after shutdown. That wasn't possible beforehand because PHP segfaulted when trying to free basic auth on shutdown.

@dunglas dunglas merged commit 0c2a010 into main Jan 26, 2026
91 checks passed
@dunglas dunglas deleted the fix/let-php-handle-auth branch January 26, 2026 09:42
@dunglas
Copy link
Member

dunglas commented Jan 26, 2026

Thank you

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.

5 participants