Skip to content

Document Litespeed SAPI functions#4922

Merged
jordikroon merged 7 commits into
php:masterfrom
AllenJB:litespeed_sapi
May 20, 2026
Merged

Document Litespeed SAPI functions#4922
jordikroon merged 7 commits into
php:masterfrom
AllenJB:litespeed_sapi

Conversation

@AllenJB
Copy link
Copy Markdown
Contributor

@AllenJB AllenJB commented Oct 13, 2025

Related: #2163

This requires an additional change to doc-base/manual.xml to reference the new book.

(How does the above mentioned change work with regards to translations? Would this PR need to wait for all translations to implement the new book?)

While technically the opposite way round (according to the php-src stubs), I've documented these as aliases for the apache_* functions where appropriate - seems like the simplest way to implement this.

Comment thread reference/apache/functions/apache-request-headers.xml Outdated
Comment thread reference/apache/functions/apache-response-headers.xml Outdated
Comment thread reference/litespeed/book.xml Outdated
Comment thread reference/litespeed/book.xml Outdated
@AllenJB AllenJB requested a review from lacatoire April 2, 2026 14:10
Comment thread reference/litespeed/versions.xml Outdated
Comment thread reference/litespeed/book.xml Outdated
Comment thread reference/apache/book.xml Outdated
Comment thread reference/litespeed/functions/litespeed-finish-request.xml
@lacatoire
Copy link
Copy Markdown
Member

This PR adds "LiteSpeed" to apache_request_headers and apache_response_headers, nice! But it looks like getallheaders.xml could use the same treatment, since it's also available under the LiteSpeed SAPI.

In php-src, getallheaders is registered as an alias of litespeed_request_headers:

Would it make sense to update getallheaders.xml as well in this PR? 😊

@AllenJB
Copy link
Copy Markdown
Contributor Author

AllenJB commented Apr 4, 2026

But it looks like getallheaders.xml could use the same treatment, since it's also available under the LiteSpeed SAPI.

Would it make sense to update getallheaders.xml as well in this PR? 😊

I don't think so. The getallheaders() page already redirects users to the apache_request_headers() documentation (which I have updated) and doesn't currently mention SAPI availability.

Adding the same information on the getallheaders() page directly would just be unnecessary duplication.

@jordikroon
Copy link
Copy Markdown
Member

This requires an additional change to doc-base/manual.xml to reference the new book.

This change has been done. Could you rebase this PR so it will trigger a new CI workflow?

(How does the above mentioned change work with regards to translations? Would this PR need to wait for all translations to implement the new book?)

It's perfectly fine to open a PR for the required change. It's usually a no-brainer to hit the merge button as they are just references. We don't need to wait for other languages to implement this book. As a matter of fact, it's quite the opposite. Once this is merged, it allows other languages to adopt this.

While technically the opposite way round (according to the php-src stubs), I've documented these as aliases for the apache_* functions where appropriate - seems like the simplest way to implement this.

That seems very logical. I will do a review later. Just a quick glimpse; could you change <para> to <simpara> where possible? This will save a lot of comments that will otherwise clutter the PR anyway.

@jordikroon jordikroon requested review from jordikroon and removed request for lacatoire May 9, 2026 09:56
Comment thread reference/litespeed/functions/litespeed-finish-request.xml Outdated
Comment thread reference/litespeed/functions/litespeed-finish-request.xml Outdated
Comment thread reference/litespeed/setup.xml Outdated
Comment thread reference/litespeed/book.xml Outdated
Comment thread reference/litespeed/functions/litespeed-finish-request.xml
&reftitle.seealso;
<para>
<simplelist>
<member><function>apache_response_headers</function></member>
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.

Suggested change
<member><function>apache_response_headers</function></member>
<member><function>litespeed_request_headers</function></member>
<member><function>getallheaders</function></member>

Comment thread reference/apache/functions/apache-response-headers.xml
Comment thread reference/apache/book.xml Outdated
Comment thread reference/apache/book.xml Outdated
Comment thread reference/apache/functions/apache-request-headers.xml Outdated
Copy link
Copy Markdown
Member

@jordikroon jordikroon left a comment

Choose a reason for hiding this comment

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

I have not suggested the <simpara> but there are still a few that Lacatoire didn't mention. It would only add more comments making it harder to go over all the changes.

Overall this looks very good.

@alfsb
Copy link
Copy Markdown
Member

alfsb commented May 14, 2026

This requires an additional change to doc-base/manual.xml to reference the new book.

(How does the above mentioned change work with regards to translations? Would this PR need to wait for all translations to implement the new book?)

In general, adding new files does not break translations. If doc-en builds, then there is a chance that translations keep working. But there some (even, many) cases where a breaking change is inevitable, sadly.

Also, having doc-base/manual.xml outside doc-en means that structure changing PRs are not "atomic", and so, it's impossible to CI test doc-en, and less so all translations.

@AllenJB AllenJB requested a review from jordikroon May 16, 2026 14:54
Copy link
Copy Markdown
Member

@jordikroon jordikroon left a comment

Choose a reason for hiding this comment

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

Small nit. Other than that LGTM.

Comment thread reference/litespeed/functions/litespeed-finish-request.xml Outdated
…move unused xmlns)

Co-authored-by: Jordi Kroon <jordi@jordikroon.nl>
@jordikroon
Copy link
Copy Markdown
Member

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.

4 participants