Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more function/constant links to ob_get_status #3053

Merged
merged 8 commits into from
Jan 3, 2024

Conversation

haszi
Copy link
Contributor

@haszi haszi commented Dec 30, 2023

Added <link>s to ob_get_status() to reference other functions/constants as appropriate and added appropriate xml:ids to these functions/constants so these can be linked to.

Also added the same note on the difference in ob_get_level() and ob_get_status() nesting levels as the one in ob_get_status().

@@ -3,7 +3,7 @@
<appendix xml:id="outcontrol.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
&reftitle.constants;
&extension.constants.core;
<variablelist>
<variablelist xml:id="constants.flags-passed-to-handler">
Copy link
Member

Choose a reason for hiding this comment

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

Please have the IDs as follows for all IDs :)

Suggested change
<variablelist xml:id="constants.flags-passed-to-handler">
<variablelist xml:id="outcontrol.constants.flags-passed-to-handler">

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. I only updated the three new ids I added. I'll update the rest of them when I'm done updating the docs of the six ob_ clean / flush() functions referencing them.

reference/outcontrol/functions/ob-get-level.xml Outdated Show resolved Hide resolved
Comment on lines 30 to 54
<note>
<para xml:id="function.ob-list-handlers.names">
If <link linkend="ini.output-buffering">output_buffering</link> is enabled
and no <link linkend="ini.output-handler">output_handler</link> is set,
or no callback or &null; was passed to <function>ob_start</function>,
<literal>"default output handler"</literal> is returned.
Enabling <link linkend="ini.output-buffering">output_buffering</link>
and setting an <link linkend="ini.output-handler">output_handler</link>
is equivalent to passing
an <link linkend="functions.internal">internal (built-in) function</link>
to <function>ob_start</function>.
</para>
<para>
If a <type>callable</type> was passed to <function>ob_start</function>,
the <link linkend="language.namespaces.basics">fully qualified name</link>
of the <type>callable</type> is returned.
If the <type>callable</type> is an object implementing
<link linkend="language.oop5.magic.invoke">__invoke()</link>,
the <link linkend="language.namespaces.basics">fully qualified name</link>
of the object's <link linkend="language.oop5.magic.invoke">__invoke()</link>
method is returned.
If the <type>callable</type> is a <classname>Closure</classname>,
<literal>"Closure::__invoke"</literal> is returned.
</para>
</note>
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this should be in a note, please revert

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reverted.

Also, this was the section I had issues with trying to add an xml:id to (#3042 (comment)).

@haszi haszi force-pushed the Sync-docs-of-ob_get_status-and-friends branch from 9135f25 to d82b187 Compare December 31, 2023 20:42
@haszi haszi requested a review from Girgias December 31, 2023 21:09
Co-authored-by: Gina Peter Banyard <girgias@php.net>
Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

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

I will have a look at the linking issue some time next week as I'll be back on my main desktop which has a better setup.

@Girgias Girgias merged commit af7044e into php:master Jan 3, 2024
2 checks passed
@haszi haszi deleted the Sync-docs-of-ob_get_status-and-friends branch January 4, 2024 11:54
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.

2 participants